Updates a segment with a specified ID.
Segment updated.
data required | object Object that contains a schema that is used to set up the UI for the segment. This schema is built and consumed by the frontend. It includes information such as: segment name, UI settings, and so on. | ||||||||
required | object Creator of segment. | ||||||||
scope required | string Controls the visibility of the segment.
| ||||||||
id | string <= 50 characters ID of the segment. | ||||||||
isStarred | boolean Specifies if this segment is starred by the current user. Starring a segment marks it as a favorite segment, and also adds the segment to a starred folder in the UI. | ||||||||
isVisible | boolean Specifies if the segment is visible to the current user. | ||||||||
Array of objects unique List of user details with which this segment is shared. | |||||||||
Access forbidden.
Resource not found.
Invalid data sent.
{- "data": { },
- "isStarred": true,
- "isVisible": true,
- "userIds": [
- "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
], - "scope": "private",
- "systemId": "string"
}
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "owner": {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "string"
}, - "data": { },
- "isStarred": true,
- "isVisible": true,
- "users": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "string"
}
], - "scope": "private"
}