cURL
curl --request POST \ --url https://api.pocketflows.com/businesses/{id}/segments \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "static_customers": [ "<string>" ], "customers": [ "<string>" ], "filter": "<string>" } '
{ "id": "<string>", "name": "<string>", "filter": "<string>", "static_customers": [ "<string>" ] }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The ID of the business
The name of the segment
A list of customer IDs to always include in this segment
A list of customer IDs to include in this segment
The filter for this segment
The created Segment object
Segment
The ID of the segment
The customers that are always included in this segment