PATCH
/
document
/
{id}
curl --request PATCH \
  --url https://api.treasuryprime.com/document/{id} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "OR Drivers License"
}'
{
  "bankdata": {},
  "created_at": "2021-03-25T21:31:50Z",
  "fields": {
    "date_of_birth": "1980-03-15"
  },
  "file_id": "file_567890",
  "id": "doc_123456",
  "name": "OR Drivers License",
  "type": "drivers_license",
  "updated_at": "2021-03-25T21:31:50Z",
  "userdata": {}
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

Unique identifier for object

Body

application/json
The document to update

The body is of type object.

Response

200 - application/json
The document updated

The response is of type object.