Publish a classifier version
publish_classifier_versionPublish the classifier's current draft config as a new immutable semver version ("1.2"-style) that runs and evaluations can pin (classify group). releaseType picks the major or minor bump; pass config to publish that config instead of the draft. Published versions never change — keep iterating on the draft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Classifier ID (cl_...). | |
| config | No | Publish this config instead of the current draft. Same shape and rules as config on create_classifier / classify_document. | |
| description | No | What changed in this version. | |
| environment | Yes | "TEST" = the Test (development) environment, "PRODUCTION" = live. Must match a granted target from get_me (an API key pins one environment). | |
| releaseType | Yes | Which semver component to bump. | |
| workspaceId | Yes | Target workspace (ws_...). Must be a granted workspace — get_me lists the accepted values. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| config | No | ||
| version | Yes | ||
| createdAt | No | ||
| description | No |