Labels

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. Requires a label-first account; other accounts receive FAILED_PRECONDITION.

post/v1/labels

Request

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