PATCH
/
contacts
/
{id}
curl --request PATCH \
  --url https://commerce.driv.ly/api/contacts/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "cnt_8dk3j2ksl9d2",
  "roles": [
    "Manager",
    "Sales"
  ],
  "lastName": "Smith",
  "firstName": "Alice"
}'
{
  "data": {
    "id": "cnt_8dk3j2ksl9d2",
    "roles": [
      "Manager",
      "Sales"
    ],
    "lastName": "Smith",
    "firstName": "Alice"
  },
  "success": true
}

Path Parameters

id
string
required

Contact is uniquely identified by id

Query Parameters

depth
integer

The number of levels of related objects to include in the response

Body

application/json

Response

200
application/json

Contact Updated

The response is of type object.