---
title: "Update Resource Metadata"
method: PATCH
path: "/api/v1/resources/{resource_id}/metadata"
tags: ["resources"]
---

# Update Resource Metadata

`PATCH /api/v1/resources/{resource_id}/metadata`

## Request

- Base URL: `https://www.gateco.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://www.gateco.ai/api/v1/resources/{resource_id}/metadata`
- Auth: OAuth 2 (password, token URL `/api/auth/login`)

Update policy-relevant metadata on a resource (Deliverable B).

Only non-None fields are updated. Changes take effect immediately
for policy decisions. Audit trail records old and new values.

## Path parameters

- `resource_id` string, uuid, required

## Request body

- UpdateResourceMetadataRequest: Request to update policy-relevant metadata on a resource (Deliverable B).
  - `classification` string, nullable
  - `sensitivity` string, nullable
  - `domain` string, nullable
  - `labels` string[], nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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