Labels

Create a label

Creates a label in the authenticated account. Optionally compiles and publishes an initial version from initial_version_text. A label with no versions is a valid state. Evaluation is always by version ID (POST /v1/labels/evaluate); a label with no versions has nothing to evaluate, and that endpoint requires label_version_ids.

post/v1/labels

Request body

namestring
initialVersionTextstring
descriptionstring

Optional description for the initial version.

disabledboolean

Optional: initial disabled state (default false).

globalContextstring

Optional global context to store on the initial label version.

Response

A successful response.

validboolean

Changes

Changed in 1 of the 3 revisions of this API.1