Loading...
Skip to main content

Delete list subscriptions

Removes all list subscriptions for given user.

URL: https://api.courier.com/profiles/:user_id/lists

Method: DELETE

Path Parameters

user_idstringrequired
A unique identifier representing the user associated with the requested profile.

Responses

status: 204 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 DELETE \
--url https://api.courier.com/profiles/0460766e-8463-4905-ae98-b72c7aef41d6/lists \
--header 'Accept: application/json'

Responses Example

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

Example

Method: DELETE

URL: https://api.courier.com/profiles/abcdefgh12345678/lists