Update a subscriber
PUT/subscriber/:email
Update a subscriber by email
Request
Path Parameters
Subscriber email address
Header Parameters
Your API key
Enable developer mode. Learn more here.
- application/json
Body
Subscriber name
Subscriber phone number. It follows the E.164 format.
Possible values: [free_subscriber
, paid_subscriber
, unsubscribed_subscriber
]
Subscriber status
Responses
- 200
- 404
- 500
Subscriber updated.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object
Subscriber email address
Subscriber phone number. It follows the E.164 format.
Subscriber name
Possible values: [free_subscriber
, paid_subscriber
, unsubscribed_subscriber
]
Subscriber status
customFields object[]
List of custom fields. Each custom field has a label, and value.
Custom field ID
Custom field label
Custom field value
List of segmentation lists IDs. You can get the ID by calling our support team.
Subscriber blacklisted date
Subscriber unsubscribed date
Subscriber creation date
Subscriber update date
{
"data": {
"id": "string",
"email": "example@email.com",
"phone": "+5511999999999",
"name": "John Doe",
"status": "free_subscriber",
"customFields": [
{
"id": "string",
"label": "age",
"value": 25
}
],
"segmentationLists": [
"ff37b0a8-de19-4f72-a7ed-0bd1cb73f29f",
"ff37b0a8-de19-4f72-a7ed-0bd1cb73f29f"
],
"blacklistedAt": "2024-04-09T19:18:29.656Z",
"unsubscribedAt": "2024-04-09T19:18:29.656Z",
"createdAt": "2024-04-09T19:18:29.656Z",
"updatedAt": "2024-04-09T19:18:29.656Z"
},
"requestId": "string"
}
Subscriber not found.
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "Subscriber not found.",
"errorCode": "SUBSCRIBER_NOT_FOUND",
"requestId": "ff37b0a8-de19-4f72-a7ed-0bd1cb73f29f"
}
Internal server error.
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "Internal server error.",
"errorCode": "INTERNAL_SERVER_ERROR",
"requestId": "ff37b0a8-de19-4f72-a7ed-0bd1cb73f29f"
}