Update a segment
This endpoint updates the details of an existing segment using the provided segment data.
description: "This endpoint updates the details of an existing segment using the provided segment data."
Update a segment
This endpoint updates the details of an existing segment using the provided segment data.
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)
Path parameters
segment.idstringRequired
Body
Responses
200
The updated 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
404
Segment for specified id does not exist.
application/json
default
An unexpected error response.
application/json
put/v1/segments/{segment.id}
PUT /v1/segments/{segment.id} 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"
}
}
