POST
/
segments
/
{id}
curl --request POST \
  --url https://api.pocketflows.com/segments/{id} \
  --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>"
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

Response

200 - application/json

The updated Segment object

The response is of type object.