Update Contact Property

PUT https://app.alaaqat.com/api/contacts/properties/{_id} _id it is 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 contact property group
enum yes
if type single_select
array EnumOption

Header

Accept: application/json

Body

{
  "type": "single_select",
  "name": {
    "en": "test 2"
  },
  "desc": {
    "en": "single select test"
  },
  "group_id": "662679e6e9e9554b6e05a512",
  "internal_name": "test_2",
  "enum": [
    {
      "en": "Male",
      "ar": "ذكر",
      "internal_name": "male"
    },
    {
      "en": "Female",
      "ar": "أُنثى",
      "internal_name": "female"
    }
  ]
}

Response

The response is always in the format of Property.

{
{
    "data": {
        "_id": "66526cec22d9034c2a06e152",
        "type": "single_select",
        "name": {
            "ar": "test 2",
            "en": "test 2"
        },
        "internal_name": "test",
        "desc": {
            "ar": null,
            "en": "single select test"
        },
        "group_id": "662679e6e9e9554b6e05a512",
        "account_id": 1,
        "made_by": 1,
        "updated_at": "2024-05-27T01:04:41.243000Z",
        "created_at": "2024-05-25T22:57:48.325000Z",
        "enum": [
            {
                "en": "Male",
                "ar": "ذكر",
                "internal_name": "male"
            },
            {
                "en": "Female",
                "ar": "أُنثى",
                "internal_name": "female"
            }
        ],
        "user": {
            "id": 1,
            "email": "ammarabed13@gmail.com",
            "email_verified_at": "2024-04-19T22:37:45.000000Z",
            "created_at": "2024-04-19T22:37:45.000000Z",
            "updated_at": "2024-05-26T23:41:01.000000Z",
            "two_factor_secret": null,
            "two_factor_recovery_codes": null,
            "two_factor_confirmed_at": null,
            "firstname": "Ammar",
            "lastname": "Alhasanat",
            "image": "http://localhost/storage/users/1/UDydTbOyFRH1Wgds3ktmhNCVfJCQK6gmvVLU3ae0.jpg",
            "google_id": "105118536515892828506",
            "google_token": "ya29.a0Ad52N3-bWw4Y60ycjepj2cokr_bNmgSbVcOVxWjyNX49rRYKzhQOPLz8EH7GB6cp6tJwkP7webo3_qW9_8RASFeHceuveF7eeu9E6Cp115qYPrXygpKKeOZMyuP2elVZYR0uM_wMgNZLidQqWFipdxOSlEoq3ES5BQpeaCgYKAfwSARASFQHGX2MiHT6rUf5DJDDDs0SALn0vXA0171",
            "contacts_view_id": null,
            "change_email_to": null,
            "locale": "en",
            "deals_view_id": null,
            "fullname": "Ammar Alhasanat"
        },
        "group": {
            "_id": "662679e6e9e9554b6e05a512",
            "internal_name": "contact_information",
            "name": {
                "en": "Contact's Information",
                "ar": "ملعومات العميل"
            },
            "desc": [],
            "account_id": null,
            "made_by": null,
            "updated_at": "2024-04-22T14:53:26.692000Z",
            "created_at": "2024-04-22T14:53:26.692000Z"
        }
    },
    "message": "Entity was modified Successfully"
}