---
title: "Update Documents"
method: POST
path: "/organizations/documents/update"
tags: ["Documents"]
---

# Update Documents

`POST /organizations/documents/update`

## Request

- Base URL: `https://api.velt.dev/v2`
- URL: `https://api.velt.dev/v2/organizations/documents/update`
- Auth: API key in header `x-velt-api-key` and API key in header `x-velt-auth-token`

Use this API to update metadata of documents within an organization.

## Request body

- object
  - `data` object, required
    - `organizationId` string, required: Organization ID
    - `documents` Document[], required
      - `documentId` string, required: Unique identifier for the document
      - `documentName` string: Display name of the document
      - `accessType` 'public' | 'restricted': Access type of the document
      - `disabled` boolean: Whether the document is disabled

## Response `200`

Documents updated successfully

- SuccessResponse
  - `result` object
    - `status` 'success'
    - `message` string
    - `data` object: Response data specific to the operation

## Other responses

- `400`: Invalid request

---

[API](https://skmtc.dev/velt-js/apis/velt-rest-api.md) - [All operations](https://skmtc.dev/velt-js/apis/velt-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/velt-js/apis/velt-rest-api/revisions/0f5af15fa267?raw)
