POST /v2/segment/create/{listId}
POST /v2/segment/create/{listId}
Header
HTTP/1.1
Authorization: Bearer $api_id.$api_secret
Host: api.$app_domain
Accept: application/json
Content-Type: application/json
Request Parameters
listId (required) |
List ID for the contact you're updating (integer) |
newSegment |
The name for your new contact segment. |
Request
POST /v2/segment/create/{listId}
HTTP/1.1 Authorization: Bearer {$key}.{$secret}
Host: {api.app.domain}
Accept: application/json
Content-Type: application/json
{
"name": {newSegment}
}
Response
HTTP/1.1 201 Created
{
"id": "0",
"message": "Success!"
}
Error code
HTTP/1.1 422 Unprocessable Entity
{
"id": "0",
"message": "Error description"
}
Comments
0 comments
Please sign in to leave a comment.