Create New Deal Property

POST https://app.alaaqat.com/api/deals/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": "65fc50e7e80edb7e1d04db92"
}

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": "65fc50e7e80edb7e1d04db92",
        "account_id": 1,
        "made_by": 8,
        "updated_at": "2024-05-28T02:38:50.208000Z",
        "created_at": "2024-05-28T02:38:50.208000Z",
        "_id": "665543baa32e9280cc0a660a",
        "user": {
            "id": 8,
            "email": "ammar.alhasanat@alaaqat.com",
            "email_verified_at": "2023-10-23T14:18:27.000000Z",
            "created_at": "2023-10-23T13:37:08.000000Z",
            "updated_at": "2024-05-26T22:42:43.000000Z",
            "firstname": "Ammar",
            "lastname": "Alhasanat",
            "contacts_view_id": null,
            "locale": "ar",
            "deals_view_id": null,
            "fullname": "Ammar Alhasanat"
        },
        "group": {
            "_id": "65fc50e7e80edb7e1d04db92",
            "internal_name": "deal_information",
            "name": {
                "en": "Deal's Information",
                "ar": "معلومات الصفقة"
            },
            "desc": [],
            "account_id": null,
            "made_by": null,
            "updated_at": "2024-03-21T15:23:19.559000Z",
            "created_at": "2024-03-21T15:23:19.559000Z"
        }
    },
    "message": "Entity was created Successfully"
}