Menu
Create a customer segment
Create a customer segment
POST
/shops/{shopKey}/countries/{countryCode}/customer-segmentsUse it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Create a customer segment action (under CustomerSegments).
- Fill in the fields below, then reference the result from later steps as
{{createACustomerSegment.response.data}}.
Request
Path parameters
Response
Returns 201 with an object. Read it in later steps with {{createACustomerSegment.response.data.<field>}}.
{
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"referenceKey": "string",
"name": "string",
"criteriaDsl": "string",
"rules": 0,
"active": false,
"createdDate": "2025-01-01T00:00:00Z",
"updatedDate": "2025-01-01T00:00:00Z"
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.
Was this page helpful?