---
title: "save_classification_definition"
method: POST
path: "/v1/projects/{projectId}/classification-metadata/definitions"
---

# save_classification_definition

`POST /v1/projects/{projectId}/classification-metadata/definitions`

## Request

- Base URL: `https://app.agentlinkops.com`
- URL: `https://app.agentlinkops.com/v1/projects/{projectId}/classification-metadata/definitions`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

The URL selects projectId. Remaining arguments go in JSON. A supplied projectId that differs from the URL returns 409 CLASSIFICATION_SCOPE_MISMATCH.

## Path parameters

- `projectId` string, required: project ID from create/list.

## Headers

- `X-Workspace-ID` string

## Request body

- object
  - `expectedRevision` integer, required: Previously read revision; mismatches reject concurrent updates.
  - `reason` string, required: reason; see schema.
  - `definition` object, required: definition; see schema.
    - `id` string, required
    - `family` 'organizational' | 'subtype' | 'semantic', required
    - `name` string, required
    - `color` string, nullable
    - `order` integer
    - `retired` boolean
    - `parentId` string
    - `taxonomyVersion` string
    - `definition` string
    - `inclusions` string[]
    - `exclusions` string[]
    - `positiveExamples` string[]
    - `negativeExamples` string[]
    - `insufficientEvidence` string

## Response `200`

The URL selects projectId. Remaining arguments go in JSON. A supplied projectId that differs from the URL returns 409 CLASSIFICATION_SCOPE_MISMATCH.

- object
  - `revision` integer, required: Optimistic concurrency revision; supply it as expectedRevision on the next write.
  - `inferenceEffect` 'none', required

## Other responses

- `429`: Request-rate or usage refusal. Inspect error.code and recovery details before retrying.
- `default`: Error envelope. Non-configuration 5xx messages are masked and details omitted; allowlisted configuration errors retain static operator recovery.

---

[API](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api.md) · [All operations](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentlinkops/apis/agentlinkops-http-api/revisions/2a712a1dcfa7?raw)
