Update Deal Property

PUT https://app.alaaqat.com/api/deals/properties/{_id} _id it is the ID for Property

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)
group_id yes _id ID for deal property group
enum yes
if type single_select
array EnumOption

Header

Accept: application/json

Body

{
  "type": "number",
  "name": {
    "en": "test number"
  },
  "group_id": "65fc50e7e80edb7e1d04db92"
}

Response

The response is always in the format of Property.

{
    "data": {
        "_id": "665543baa32e9280cc0a660a",
        "type": "number",
        "name": {
            "en": "test number"
        },
        "desc": {
            "ar": "Test",
            "en": "Test"
        },
        "internal_name": "test",
        "group_id": "65fc50e7e80edb7e1d04db92",
        "account_id": 1,
        "made_by": 8,
        "updated_at": "2024-05-28T03:02:57.120000Z",
        "created_at": "2024-05-28T02:38:50.208000Z",
        "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",
            "image": "https://alaaqat-public.s3.eu-west-1.amazonaws.com/users/8/FM3SACrjCXrx8UgXwAIGe1x8Ucb0ZClS1ZAAlbv2.jpg",
            "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 modified Successfully"
}