Post
/segmentation/create
Creates a new selection plan. The request body is a wrapper whose json field carries the raw plan JSON document as a string (escaped). The plan must contain at least name and nodes; validate it against schema first. Returns the new plan's id.
Example body
{
"json": "{"name":"My plan","timeZoneId":"Europe/Belgrade","nodes":[ ... ]}"
}
Body parameters
Wrapper carrying the raw plan JSON document as a string in its 'json' field.
object
json
string
Responses
200
The new plan's id, e.g. {"id":"..."}.
object
id
string
400
bad request