Docs

Add Activity Segment

POST /Activities/{activityId}/segments

POST/Activities/{activityId}/segments

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Adds a new segment to the activity's run of show at the specified position. Other segments are reordered automatically.

Requires EventAdmin permission on the event.

Path Parameters

FieldTypeRequiredDescription
activityIdGuidRequiredThe ID of the activity to add a segment to.

Request Body

FieldTypeRequiredDescription
indexintRequiredZero-based position in the run of show.
namestringRequiredDisplay name for the segment.
durationintRequiredDuration of the segment in minutes.
colorstringRequiredDisplay color for the segment (e.g., a hex color string).
propertiesarrayOptionalValues for the activity's configuration columns. See property object below.

Property Object

FieldTypeRequiredDescription
columnIdGuidRequiredThe ID of the configuration column this value belongs to.
valuestringRequiredThe value for this column on this segment.

Response

Returns 200 OK with no body on success.