API Reference
Search…
Update a document
post
https://api.complycube.com
/v1/documents/:id
Update a document

Example request

cURL
Node.js
Python
PHP
.NET
curl -X POST https://api.complycube.com/v1/documents/{:documentId} \
-H 'Authorization: <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"type": "passport"
}'
const { ComplyCube } = require("@complycube/api");
const complycube = new ComplyCube({ apiKey: "<YOUR_API_KEY>" });
const document = await complycube.document.update("DOCUMENT_ID", {
type: "passport"
});
from complycube import ComplyCubeClient
cc_api = ComplyCubeClient(api_key='<YOUR_API_KEY>')
document = cc_api.documents.update('DOCUMENT_ID', type='passport')
use ComplyCube\ComplyCubeClient;
$ccapi = new ComplyCubeClient('<YOUR_API_KEY>');
$document = $ccapi->documents()->update('DOCUMENT_ID',['type' => 'passport']);
using ComplyCube.Net;
using ComplyCube.Net.Resources.Documents;
var docApi = new DocumentApi(new ComplyCubeClient("<YOUR_API_KEY>"));
var update = new DocumentRequest { type = "passport" };
var document = await docApi.UpdateAsync("DOCUMENT_ID", update);