Menu
Update a customer segment
Update a customer segment
PATCH
/shops/{shopKey}/countries/{countryCode}/customer-segments/{segmentGuid}Use it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Update a customer segment action (under CustomerSegments).
- Fill in the fields below, then reference the result from later steps as
{{updateACustomerSegment.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body 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"
}
Response
Returns 200 with an object. Read it in later steps with {{updateACustomerSegment.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?