Skip to main content
PATCH
/
accounts
/
{id}
Update an existing Account
curl --request PATCH \
  --url https://commerce.driv.ly/api/accounts/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "consumer": "<string>",
  "lead": "<string>",
  "anonymousIds": [
    "<string>"
  ]
}
'
{
  "data": {
    "id": "<string>",
    "consumer": "<string>",
    "lead": "<string>",
    "anonymousIds": [
      "<string>"
    ]
  },
  "success": true
}

Path Parameters

id
string
required

Account is uniquely identified by id

Query Parameters

depth
integer

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

Body

application/json
id
string

Account is uniquely identified by id

consumer

Consumer logs into Account

lead

Lead logs into Account

anonymousIds
string[]

Account was logged in to by Anonymous ID

Response

Account Updated

data
Account · object
success
boolean