---
title: "Save classification definition"
method: POST
path: "/v1/commands/save_classification_definition"
tags: ["Link monitoring and evidence"]
---

# Save classification definition

`POST /v1/commands/save_classification_definition`

## Request

- Base URL: `https://app.agentlinkops.com`
- URL: `https://app.agentlinkops.com/v1/commands/save_classification_definition`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Shared command transport. All logical arguments in JSON; no query or Idempotency-Key header. See canonical operation reference.

## Headers

- `X-Workspace-ID` string

## Request body

- SaveClassificationDefinitionInput
  - `projectId` string, required: project ID from create/list.
  - `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`

Command result, including queued admission.

- SaveClassificationDefinitionOutput
  - `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)
