---
title: "Set Approval"
method: PUT
path: "/api/folders/{library_id_ref}/approvals"
tags: ["governance"]
---

# Set Approval

`PUT /api/folders/{library_id_ref}/approvals`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/folders/{library_id_ref}/approvals`
- Auth: none declared

Set or clear an explicit approval decision for a (consuming_identity, artifact) pair.

state='pending' means DELETE the existing row (revert to trust_mode default).
Otherwise UPSERT the artifact_approvals row with the given state.

Authorization (any of):
- Caller is an active admin of the folder.
- Caller is a human owner of the consuming identity.
- Caller IS the consuming identity (human identities only -- agents cannot self-approve).

## Path parameters

- `library_id_ref` string, required

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- SetApprovalRequest: Request body for PUT /api/folders/{library_id}/approvals.
  - `consuming_identity_id` string, uuid, required
  - `artifact_type` string, required
  - `artifact_id` string, uuid, required
  - `state` string, required
  - `capability_role` string, nullable
  - `clear_capability_role` boolean

## Response `200`

Successful Response

- SetApprovalResponse: Response for PUT /api/folders/{library_id}/approvals.
  - `consuming_identity_id` string, uuid, required
  - `artifact_type` string, required
  - `artifact_id` string, uuid, required
  - `effective_state` string, required
  - `capability_role` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/5fdd1072e877?raw)
