# Returns the updated document.

Updates the resource identified by the path parameter. Validation errors return **400**; **404** when the resource is missing.

Endpoint: PUT /v1/documents/{documentId}
Version: 191.0.3
Security: bearerAuth, oAuthSandbox

## Security:

  - `bearerAuth` (unknown)
    http bearer JWT

  - `oAuthSandbox` (unknown)
    oauth2

## Path parameters:

  - `documentId` (integer, required)
    ID of the document to update

## Query parameters:

  - `responseFields` (string)
    A URL-encoded, comma-delimited list of field names to include in the response data. Additionally, the following values are also supported:
ALL - Returns all field names.

## Header parameters:

  - `Organization-ID` (string, required)
    Organization context for the request. Must match the organization authorized by the access token.

## Request body:

  - `application/json` (unknown)
    **Purpose:** Update the Document Update identified by the path parameter.
**Required fields:** Only included properties are updated; omitted fields are unchanged.
**Idempotency:** Not supported.

## Request fields (application/json):

  - `name` (string)

  - `tags` (array)

## Request examples:

  - `default` (unknown)

## Response 200:

  - `200` (unknown)
    Document was updated

## Response 200 fields (application/json):

  - `data` (object)
    Example: {"id":1234,"name":"Example Name"}

  - `data.id` (integer)
    Example: 1234

  - `data.name` (string)

  - `data.tags` (array)

  - `warnings` (array)

  - `warnings.code` (string)

  - `warnings.title` (string)

  - `warnings.description` (string)

  - `warnings.source` (string)

  - `errors` (array)

## Response 400:

  - `400` (unknown)
    The request was invalid or cannot be processed

## Response 401:

  - `401` (unknown)
    Authentication is required and has failed or has not been provided

## Response 403:

  - `403` (unknown)
    The request is understood, but it has been refused or access is not allowed

## Response 404:

  - `404` (unknown)
    The requested resource is either missing or does not exist

## Response 408:

  - `408` (unknown)
    The server timed out while processing the request

## Response 429:

  - `429` (unknown)
    Rate limit exceeded

## Response 500:

  - `500` (unknown)
    An unexpected error occurred

## Response 200 examples:

  - `default` (unknown)

