Create a segment
This endpoint creates a new segment using the data provided in the request body.
description: "This endpoint creates a new segment using the data provided in the request body."
Create a segment
This endpoint creates a new segment using the data provided in the request body.
Authorizations
AuthorizationstringRequired
For accessing the API a valid JWT must be passed in all queries in the 'Authorization' header. The following syntax must be used in the 'Authorization' header. (Bearer xxx.yyy.zzz)
Body
Responses
200
The created segment
application/json
400
There was a problem with input.
application/json
401
Login failed or token not valid.
application/json
403
Login failed or token not valid.
application/json
default
An unexpected error response.
application/json
post/v1/segments
POST /v1/segments HTTP/1.1
Host: customer.<env>.citrusad.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 129
{
"segment": {
"category": [
"text"
],
"description": "text",
"name": "text",
"retailerTeamId": "text",
"segmentId": "text",
"sourceId": "text"
}
}{
"segment": {
"category": [
"text"
],
"description": "text",
"id": "text",
"name": "text",
"retailerTeamId": "text",
"segmentId": "text",
"sourceId": "text"
}
}
