Create New Ticket Property

POST https://app.alaaqat.com/api/tickets/properties/

Requirements

field required type description
type yes string Enums PropertiesTypes
name yes array Language options (ar or en)
desc no array Language options (ar or en)
internal_name yes string unique and when created,
the property cannot be edited
group_id yes _id ID for deal property group
enum yes
if type single_select
array EnumOption

Header

Accept: application/json

Body

{
  "type": "string",
  "name": {
    "ar": "Test",
    "en": "Test"
  },
  "desc": {
    "ar": "Test",
    "en": "Test"
  },
  "internal_name": "test",
  "group_id": "66900cad55aa925b2f051c0b"
}

Response

The response is always in the format of Property.

{
    "data": {
        "type": "string",
        "name": {
            "ar": "Test",
            "en": "Test"
        },
        "desc": {
            "ar": "Test",
            "en": "Test"
        },
        "internal_name": "test",
        "group_id": "66900cad55aa925b2f051c0b",
        "account_id": 1,
        "made_by": 1,
        "updated_at": "2024-07-18T03:01:41.525000Z",
        "created_at": "2024-07-18T03:01:41.525000Z",
        "_id": "669885955b6b9ecd2e0aa200",
        "account": {
            "id": 1,
            "name": "test",
            "created_at": "2024-07-11T16:45:07.000000Z",
            "updated_at": "2024-07-11T16:45:07.000000Z",
            "industry": "Accounting",
            "logo": "https://ui-avatars.com/api/?name=test",
            "address": null,
            "timeZone": null,
            "calendar": null,
            "hour12": null,
            "locale": null,
            "currency": null
        },
        "user": {
            "id": 1,
            "email": "ammarabed13@gmail.com",
            "email_verified_at": "2024-07-11T16:44:54.000000Z",
            "created_at": "2024-07-11T16:44:54.000000Z",
            "updated_at": "2024-07-17T14:49:51.000000Z",
            "firstname": "Ammar",
            "lastname": "Alhasanat",
            "image": "http://localhost/storage/users/1/K3KGlzs8GCkYSTP6jrbPacIq1i57GZEpfYZIaRGW.jpg",
            "contacts_view_id": null,
            "locale": "ar",
            "deals_view_id": null,
            "tickets_view_id": null,
            "fullname": "Ammar Alhasanat"
        },
        "group": {
            "_id": "66900cad55aa925b2f051c0b",
            "internal_name": "ticket_information",
            "name": {
                "en": "ticket's Information",
                "ar": "معلومات التذكرة"
            },
            "desc": [],
            "account_id": null,
            "made_by": null,
            "updated_at": "2024-07-11T16:47:41.632000Z",
            "created_at": "2024-07-11T16:47:41.632000Z"
        }
    },
    "message": "Entity was created Successfully"
}