Docs

Update Activity Segment

PUT /Activities/{activityId}/segments/{segmentId}

PUT/Activities/{activityId}/segments/{segmentId}

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.

Replaces all fields of an existing segment. This is a full update — all fields must be provided.

Requires EventAdmin permission on the event.

Path Parameters

FieldTypeRequiredDescription
activityIdGuidRequiredThe ID of the activity.
segmentIdGuidRequiredThe ID of the segment to update.

Request Body

FieldTypeRequiredDescription
indexintRequiredZero-based position in the run of show. Changing this reorders other segments automatically.
namestringRequiredDisplay name for the segment.
durationintRequiredDuration of the segment in minutes.
colorstringRequiredDisplay color for the segment.
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.