Loading...
Skip to main content

PATCH /preferences/:recipient_id

URL: https://api.courier.com/preferences/:recipient_id

Method: PATCH

Path Parameters

recipient_idstringrequired
A unique identifier representing the recipient associated with the requested profile.

Body Parameters

patcharray
An array of patch operations. Learn more
+ Show Properties

Responses

status: 200 OK

statusstring

status: 400 Bad Request

messagestring
A message describing the error that occurred.
typestring
[invalid_request_error] The type of error that occurred.

Request Example

curl --request PATCH \
--url https://api.courier.com/preferences/0460766e-8463-4905-ae98-b72c7aef41d6 \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '
{
"patch": [
{
"op": "replace",
"path": "/email",
"value": "test@example.com"
}
]
}
'

Responses Example

{
"status": "SUCCESS"
}
{
"message": "Error Message",
"type": "invalid_request_error"
}