- Create a new UI segment
Creates a new UI segment for yourself or to share with others within your organization.
Segment resource.
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.
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.
List of user IDs with which the segment is shared. This field is used when the scope field is set to shared.
Controls the visibility of the segment.
| Enum Value | Description |
|---|---|
| private | Visible only to the owner the segment. |
| public | Visible to all in the owner's organization. |
| shared | Visible to a specific group of users that are specified in the |
- Mock serverhttps://www.rebilly.com/_mock/catalog/all/grid-segments
- Sandbox serverhttps://api-sandbox.rebilly.com/organizations/{organizationId}/grid-segments
- Live serverhttps://api.rebilly.com/organizations/{organizationId}/grid-segments
- SecretApiKey
- JWT
curl -i -X POST \
https://www.rebilly.com/_mock/catalog/all/grid-segments \
-H 'Content-Type: application/json' \
-H 'REB-APIKEY: YOUR_API_KEY_HERE' \
-d '{
"data": {
"name": "string",
"columns": [
"string"
],
"filters": "averageValue/amount:10;bin:555,2058",
"page": "data-tables",
"sort": "string",
"type": "customers"
},
"isStarred": true,
"isVisible": true,
"userIds": [
"4f6cf35x-2c4y-483z-a0a9-158621f77a21"
],
"scope": "private",
"systemId": "string"
}'Segment created.
Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.
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.
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.
{ "id": "grd_seg_0YVCNRJW0ADV49TN8BD9X91XB5", "owner": { "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21", "name": "string" }, "data": { "name": "string", "columns": [ … ], "filters": "averageValue/amount:10;bin:555,2058", "page": "data-tables", "sort": "string", "type": "customers" }, "isStarred": true, "isVisible": true, "users": [ { … } ], "scope": "private" }