curl --request POST \
--url 'https://api.stateset.com/api/v1/segments' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"description": null,
"name": "string",
"segment_type": null
}'
{
"created_at": "string",
"id": "string",
"member_count": 1,
"name": "string",
"segment_type": "string"
}
Create a segment
Create a segment
POST
/
api
/
v1
/
segments
curl --request POST \
--url 'https://api.stateset.com/api/v1/segments' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"description": null,
"name": "string",
"segment_type": null
}'
{
"created_at": "string",
"id": "string",
"member_count": 1,
"name": "string",
"segment_type": "string"
}
Request body
CreateSegmentRequest
string,null
string
required
string,null
Responses
SegmentResponse
ErrorBody
curl --request POST \
--url 'https://api.stateset.com/api/v1/segments' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"description": null,
"name": "string",
"segment_type": null
}'
{
"created_at": "string",
"id": "string",
"member_count": 1,
"name": "string",
"segment_type": "string"
}
⌘I