Docs

Create Rule Set

POST /rule-sets

POST/rule-sets

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.
Event tokenx-Event-TokenOptionalRun **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually.

Creates an empty rule set.

Requires EventSettings permission on the event.
Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.

Request Body

FieldTypeRequiredDescription
namestringRequiredName.

Response

201 Created with { "id": "<ruleSetId>" }.

Error Codes

HTTP StatusDescription
400Invalid name.