Update Contact

PUT https://app.alaaqat.com/api/contacts/{_id}

_id it is ID for contact

Header

Accept: application/json

Body

This endpoint accepts custom properties in the body, read properties.

syntax is property_internal_name: value

{
  "firstname": "test",
  "lastname": "test",
  "middlename": "test",
  "birthdate": "1997-08-21T21:00:00Z",
  "phone": "+962785622789",
  "gender": "male",
  "languages": "arabic",
  "annual_revenue": 50.5
}

Response

The return type will always be Contact.

{
    "data": {
        "properties": {
            "_id": "663e09362a3faf06c50d0172",
            "account_id": 1,
            "firstname": "test",
            "lastname": "test",
            "email": "test@email.com",
            "updated_at": "2024-05-27T22:12:42.175000Z",
            "created_at": "2024-05-10T11:47:02.680000Z",
            "annual_revenue": 50.5,
            "birthdate": {
                "$date": {
                    "$numberLong": "872197200000"
                }
            },
            "gender": "male",
            "languages": "arabic",
            "middlename": "test",
            "phone": "+962785622789",
            "test": null,
            "fullname": "test test",
            "image": "https://ui-avatars.com/api/?rounded=true&bold=true&name=test test&background=4B5563&color=fff"
        },
        "channels": []
    },
    "message": "Entity was modified Successfully"
}