Skip to main content

PATCH /preferences/:recipient_id

PATCHhttps://api.courier.com/preferences/:recipient_id
Apply a JSON Patch (RFC 6902) to the specified preferences or create one if a profile doesn't already exist.
PATH PARAMS
recipient_idstringrequired
A unique identifier representing the recipient associated with the requested profile.
BODY PARAM
patcharray
An array of patch operations. Learn more
Responses
AUTH TOKEN
curl --request PATCH \
--url https://api.courier.com/preferences/0460766e-8463-4905-ae98-b72c7aef41d6 \
--header 'Accept: application/json'
Response Example
{
"status": "SUCCESS"
}

Example

Method: PATCH

URL: https://api.courier.com/preferences/0460766e-8463-4905-ae98-b72c7aef41d6

Body: ​

{
"patch": [
{
"op": "replace",
"path": "/email",
"value": "test@example.com"
}
]
}