POST http:///fleet.roadprotect.co.il/api/v1/document
| Parameter name | Value | Description | Additional |
|---|---|---|---|
| file | file | ||
| ocr | boolean |
The request body takes a complete CreateDocumentDto resource, containing the following writable properties:
{
"fileDirectory": "string",
"fileName": "string",
"ocr": {
"car": "string",
"contract": "string",
"customer": "string",
"end": "string",
"owner": "string",
"start": "string"
},
"storageName": "string"
}
| Name | Type | Description | Additional |
|---|---|---|---|
| fileDirectory | string | ||
| fileName | string | ||
| ocr | object | OcrDetails | |
| ocr.car | string | ||
| ocr.contract | string | ||
| ocr.customer | string | ||
| ocr.end | string | ||
| ocr.owner | string | ||
| ocr.start | string | ||
| storageName | 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 |
| 400 | Bad Request
|
|
| 500 | Internal Server Error E122: The CreateDocumentDto does not have a fileName: CreateDocumentDto |