POST /v1/customer-segments/{segment_id}/revisions
TenantService_CreateCustomerSegmentRevision
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
segment_idpath · string · required
Request body
condition_jsonstringidempotency_keystringsegment_idstring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/customer-segments/{segment_id}/revisions' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"condition_json": "<value>",
"idempotency_key": "<value>"
}'Response contract
200 · OK
condition_jsonstringcreated_atstringidstringrevision_nointeger · int32segment_idstringstatusstringupdated_atstringvalidation_report_jsonstringversionstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.