Updates a consumer
/v1/consumers/{id}
curl --request PATCH \
--url https://api.oneslipstream.com/v1/consumers/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json'
{
"id": "con_bPKKB3sYsukFanSsaBcMCMR2",
"description": "A special secretary",
"firstname": "Eve",
"lastname": "Moneypenny",
"metadata": {
"job": "secretary"
},
"othername": "string",
"title": "miss",
"addresses": [
{
"buildingName": "null",
"buildingNumber": "7",
"city": "London",
"country": "GB",
"line1": "New Bond Street",
"line2": "null",
"postcode": "SE1 7TP",
"state": "Greater London",
"subBuildingName": "null",
"subBuildingNumber": "null"
}
],
"dob": "1975-07-26T00:00:00.000Z",
"createdAt": "2022-07-26T00:00:00.000Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The id of the consumer
Body
An arbitrary string attached to the object
The customer's firstname
The customer's lastname
Set of key-value pairs that you can attach to an object, useful for storing additional information about the object in a structured format
The customer's middle names or initials
The customer's title
mr
, mrs
, miss
, ms
, dr
, prof
, sir
Response
The unique identifier for the consumer
An arbitrary string attached to the object
The customer's firstname
The customer's lastname
Set of key-value pairs that you can attach to an object, useful for storing additional information about the object in a structured format
The customer's middle names or initials
The customer's title
mr
, mrs
, miss
, ms
, dr
, prof
, sir
The customer's addresses
The consumer's date of birth
The date and time the consumer was created
curl --request PATCH \
--url https://api.oneslipstream.com/v1/consumers/{id} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json'
{
"id": "con_bPKKB3sYsukFanSsaBcMCMR2",
"description": "A special secretary",
"firstname": "Eve",
"lastname": "Moneypenny",
"metadata": {
"job": "secretary"
},
"othername": "string",
"title": "miss",
"addresses": [
{
"buildingName": "null",
"buildingNumber": "7",
"city": "London",
"country": "GB",
"line1": "New Bond Street",
"line2": "null",
"postcode": "SE1 7TP",
"state": "Greater London",
"subBuildingName": "null",
"subBuildingNumber": "null"
}
],
"dob": "1975-07-26T00:00:00.000Z",
"createdAt": "2022-07-26T00:00:00.000Z"
}