Update segment by id

Updates the content of the segment with the provided payload. Requires name and constraints to be present. If project is not present, it will be set to null. Any other fields not specified will be left untouched.

Authentication

Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format

Path parameters

idintegerRequired
a segment id

Request

upsertSegmentSchema
namestringRequired
The name of the segment
constraintslist of objectsRequired
The list of constraints that make up this segment
descriptionstring or nullOptional
A description of what the segment is for
projectstring or nullOptional
The project the segment belongs to if any.

Response

This response has no body.

Errors