PATCH
/
consumers
/
{id}
curl --request PATCH \
  --url https://api.sulu.sh/v0/consumers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "email": "jsmith@example.com",
  "address": {
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>",
    "zipCode": "<string>"
  },
  "metadata": {},
  "phone": "<string>"
}'
{
  "id": "<string>",
  "object": "consumer",
  "name": "<string>",
  "email": "jsmith@example.com",
  "metadata": {},
  "phone": "<string>",
  "address": {
    "line1": "<string>",
    "line2": "<string>",
    "city": "<string>",
    "state": "<string>",
    "country": "<string>",
    "zipCode": "<string>"
  },
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Unique identifier for an organization

Body

application/json

Response

200
application/json
Consumer updated successfully

The response is of type object.