← Back to API Reference

PUT /segments/{id}/members

Replace Segment Members

Replace the membership list for a static segment.

Request (cURL)

curl -X PUT "http://localhost:8080/v1/segments/id_123/members" \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{
  "contact_external_ids": [
    "wc_customer_42",
    "wc_customer_84"
  ]
}'

Response Example

{
  "id": "id_123"
}

Request Body Example

{
  "contact_external_ids": [
    "wc_customer_42",
    "wc_customer_84"
  ]
}