Skip to main content
POST
Create a decision

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

workspace
string
required

Workspace slug.

Maximum string length: 64
Pattern: ^[a-z0-9][a-z0-9-]{0,63}$

Body

application/json
key
string
required

Lowercase slug: letters, digits and hyphens, starting with a letter or digit. No slashes — use folder for grouping.

Maximum string length: 64
Pattern: ^[a-z0-9][a-z0-9-]{0,63}$
name
string
required

Human-readable decision name.

description
string | null
folder
string
default:""

Optional '/'-delimited grouping for the UI. Not part of the evaluation key, so it can be renamed freely.

Maximum string length: 255

Response

Successful Response

workspace
string
required
key
string
required
name
string
required
created_by
string
required
created_at
string<date-time>
required
description
string | null
folder
string
default:""
archived_at
string<date-time> | null
latest_version
integer | null
published
PublicationResponse · object | null

The version this decision currently evaluates, if any.