Request

POST http:///fleet.roadprotect.co.il/api/v1/contract/reference/{reference}/end-date

Path parameters

Parameter name Value Description Additional
reference string Required

Request body

The request body takes a complete UpdateContractEndDateDto resource, containing the following writable properties:

{
    "endDate": "string",
    "startDate": "string"
}

Properties

Name Type Description Additional
endDate string

The new contract end date

Optional
startDate string

The new contract start date

Optional

Authorisation

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 .

Response

The following HTTP status codes may be returned, optionally with a response resource.

Status code Description Resource
201 Created Contract
400 Bad Request
  • E051: More than one contract found with the same reference (reference), please ensure your contract reference is unique
  • E052: No contract found relating to your current account with that reference
500 Internal Server Error

Failed to update contract, please contact support