---
title: "Update a document"
method: POST
path: "/v2/users/{userId}/kyc/documents/{documentId}"
tags: ["Kyc"]
---

# Update a document

`POST /v2/users/{userId}/kyc/documents/{documentId}`

Update a document for the user.

## Path parameters

- `userId` string, required
- `documentId` string, required

## Request body

- union
  - IndividualDocumentUpdate
    - `issuedCountry` string — Three-letter alpha-3 country code as defined in the ISO 3166-1 spec.
    - `issuedDate` string, date — Date of issue of the document.
    - `expiryDate` string, date — Expiry date of the document.
    - `number` string — If applicable, unique identification number of the document.
    - `description` string — Description of the document. Required if type is `OTHER`.
    - `url` string — URL of the document. Either `url` or `fileId` is required, but not both. *Maximum file size 10MB and minimum file size 10KB *Valid file types: .pdf, .jpeg, .jpg, .png, .heic, .tif
    - `fileId` string — The file ID returned from the file upload endpoint. Either `url` or `fileId` is required, but not both.
  - BusinessDocumentUpdate
    - `issuedCountry` string — Three-letter alpha-3 country code as defined in the ISO 3166-1 spec.
    - `issuedDate` string, date — Date of issue of the document.
    - `expiryDate` string, date — Expiry date of the document.
    - `number` string — If applicable, unique identification number of the document.
    - `description` string — Description of the document. Required if type is `OTHER`.
    - `url` string — URL of the document. Either `url` or `fileId` is required, but not both. *Maximum file size 10MB and minimum file size 10KB *Valid file types: .pdf, .jpeg, .jpg, .png, .heic, .tif
    - `fileId` string — The file ID returned from the file upload endpoint. Either `url` or `fileId` is required, but not both.

## Response `200`

Success

- DocumentObject
  - `type` string
  - `subType` string
  - `issuedCountry` string
  - `issuedDate` string, date
  - `expiryDate` string, date
  - `number` string
  - `description` string
  - `url` string
  - `fileId` string
  - `uboId` string

## Other responses

- `401` — Unauthorized
- `404` — Resource not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/hifibridge/apis/hifi-api.md) · [All operations](https://skmtc.net/hifibridge/apis/hifi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hifibridge/hifi-api/versions/74d9e530fbea/schema)
