Update a specific segment

Updates a specific segment by segmentId

SecurityAuthorizationToken
Request
path Parameters
segmentId
required
number

ID of the segment to be updated

Example: 100002
header Parameters
required
object

Valid JSON object that must contain account, stage, date, and channel attributes. eg - {"stage":"prod","account":"5f328bf0b","date":"2020-12-12T08:00:00.000Z","channel":12}

Authorization
required
string

Authorization token or access token for the user, provided by fabric. It can be obtained after logging into fabric's copilot account.

Example: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
Request Body schema: application/json
name
required
string

Name of segment

value
required
Array of strings

Array of segment value

Responses
200

OK

400

Bad request

404

Not Found

500

Internal Server Error

put/api-offers/segment/{segmentId}
Request samples
application/json
{
  • "name": "Customer Type",
  • "value": [
    ]
}
Response samples
application/json
{
  • "_id": "614b58924e92f6861ac9d43b",
  • "segmentId": 100002,
  • "name": "Customer Type",
  • "value": [
    ],
  • "deleted": false,
  • "createdAt": "2020-12-14T12:15:43.646Z",
  • "updatedAt": "2021-12-14T12:15:43.646Z"
}