POST http:///fleet.roadprotect.co.il/api/v1/document/{documentId}
| Parameter name | Value | Description | Additional |
|---|---|---|---|
| documentId | number | Required |
The request body takes a complete UpdateDocumentDto resource, containing the following writable properties:
{
"fileName": "string"
}
| Name | Type | Description | Additional |
|---|---|---|---|
| fileName | string |
To authenticate your client integration please put your token in the header of your requests with the key Authorization, it should look like this:
Authorization: Bearer YOUR_TOKEN_HERE
Please keep your token secured. If your token is compromised, we can issue a new token for you.
This request requires the use of one of following authorisation methods:
API key
.
The following HTTP status codes may be returned, optionally with a response resource.
| Status code | Description | Resource |
|---|---|---|
| 201 | Created | Document |
Replace DOCUMENT_ID with the desired documentId.
Replace FILE_NAME with the desired fileName.
var request = require('request');
var options = {
'method': 'POST',
'url': 'http://fleet.roadprotect.co.il/api/v1/document/DOCUMENT_ID',
'headers': {
'Authorization': 'Bearer YOUR_TOKEN_HERE',
'Content-Type': 'application/json'
},
body: JSON.stringify({"fileName":"FILE_NAME"})
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
Replace DOCUMENT_ID with the desired documentId.
Replace FILE_NAME with the desired fileName.
import requests
url = "http://fleet.roadprotect.co.il/api/v1/document/DOCUMENT_ID"
payload="{\n \"fileName\": \"FILE_NAME\"\n}"
headers = {
'Authorization': 'Bearer YOUR_TOKEN_HERE',
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)