---
title: "tag_placement_occurrences"
method: POST
path: "/v1/projects/{projectId}/classification-metadata/occurrences"
---

# tag_placement_occurrences

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

## Request

- Base URL: `https://app.agentlinkops.com`
- URL: `https://app.agentlinkops.com/v1/projects/{projectId}/classification-metadata/occurrences`
- 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.
  - `definitionId` string, required: definition ID from create/list.
  - `action` 'attach' | 'detach', required: action; see schema.
  - `occurrences` object[], required: occurrences; see schema.
    - `watchId` string, required
    - `occurrenceId` string, required
    - `captureId` string, required
    - `evidenceHash` string, required

## 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)
