Update Batch Documents: Removes not present properties
This request updates a batch of new documents and removes any properties that are not present.
PUT: <BaseURL>/api/v2/documents
Parameters
Parameter | Description | Requirement | Supported Value | In |
---|---|---|---|---|
x-api-token
|
The API access_token generated for the Access Key | Required | String | Header |
schema
|
Document configuration information | Required | String | Body |
Schema
Parameter | Description | Requirement | Supported Value | In |
---|---|---|---|---|
templateUid
|
Unique template id (for example TPL-79 ) |
Required | String | Body |
id
|
Enter the document ID to update | Required | Integer | Body |
title
|
Name of the document | Required | String | Body |
Request Format
cURL
curl --location --request PUT '<BaseURL>/api/v2/documents/' \ --header 'x-access-token: <your_API_Access_Token>' --header 'content-type: application/json' \ --data-raw ' { "templateUid": "string", "id": 0, "title": "string", ] }'
Program
URL (PUT) | |
---|---|
<BaseURL>/api/v2/documents | |
Header Key | Header Value |
x-access-token
|
<your_API_Access_Token>
|
Body (raw / JSON) | |
templateUid
|
<ID for the template>
|
id
|
<Leave blank when adding documents>
|
title
|
<Document title>
|
Response Format
{ "success": true }