Segments

Segments

Display a listing of segments in a workspace.

get

Display a listing of segments in a workspace.

Path parameters
workspaceIdstringRequired

ID of the workspace

Query parameters
namestringOptional

Filter segments by name

per_pageintegerOptional

Number of items per page

Default: 15
pageintegerOptional

Page number for pagination

Default: 1
Responses
get
api/workspaces/{workspaceId}/segments
200

Successful operation

No content

Store a newly created segment

post

Store a newly created segment in storage.

Body
namestringOptionalExample: Active Users
Responses
201

Segment created successfully

No content

post
/api/workspaces/{workspaceId}/segments
201

Segment created successfully

No content

Update a segment

put

Update the specified segment.

Body
namestringOptionalExample: Updated Segment Name
Responses
put
/api/workspaces/{workspaceId}/segments/{segmentId}

No content

Last updated