Create condition

POST
/api/v1/conditions

Creates a new condition and returns the condition ID.

Authorization

auth ApiKey
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

In: header

X-API-KEY<token>

Internal API key for admin endpoints. Example: "X-API-KEY: {key}"

In: header

Request Body

application/json

The condition creation request containing the condition name, description, and project ID.

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/conditions" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8"  }'
"string"