---
title: "Edit metadata"
method: PATCH
path: "/hubs/{HubHashId}/projects/{ProjectId}/documents/{DocumentId}/metadata"
tags: ["Metadata"]
---

# Edit metadata

`PATCH /hubs/{HubHashId}/projects/{ProjectId}/documents/{DocumentId}/metadata`

Update metadata fields for a document.

## Path parameters

- `DocumentId` string, required
- `HubHashId` string, required
- `ProjectId` integer, required

## Query parameters

- `RevisionId` string

## Request body

- FeaturesDocumentsEditMetadataEditMetadataCommandEditMetadataCommandBody
  - `fieldName` string, nullable
  - `value` string, nullable

## Response `204`

No Content

- MicrosoftAspNetCoreMvcNoContentResult
  - `statusCode` integer

## Other responses

- `307` — According to the hub id, the request is at the wrong datacenter. Please retry with the URL in the "Location" header.
- `400` — The request is malformed or has invalid parameters values.
- `403` — The request is not authenticated.
- `404` — The project or document doesn't exist

---

[API](https://skmtc.dev/bimtrackapp/apis/newforma-konekt-document-control-api.md) · [All operations](https://skmtc.dev/bimtrackapp/apis/newforma-konekt-document-control-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bimtrackapp/newforma-konekt-document-control-api/revisions/4671d430ce39/schema)
