v1

latestOpenAPI 3.1.02026-07-13250151.3 KB
evidence

Link and/or unlink evidence items to/from an intent. Dual-writes the intent_spec_evidence join table and the linked_intent_ids array on evidence_items.

evidenceIds in the response is re-fetched from intent_spec_evidence after applying link/unlink, so it reflects ALL currently-linked evidence (not just what was changed). link/unlink counts only increment for IDs that exist in the workspace. Cookie-session auth requires ?workspace_id= and a workspace membership.

post/api/v1/intents/{id}/evidence

Path parameters

idstring required

id path parameter.

Request body

linkstring[]

Evidence item UUIDs to link. Validated against the workspace; unknown IDs silently skipped. At least one of link/unlink must be a non-empty array.

unlinkstring[]

Evidence item UUIDs to unlink. Validated against the workspace; unknown IDs silently skipped. At least one of link/unlink must be a non-empty array.

Response

Link/unlink applied; returns counts and the intent's full current evidence ID list

object required