POST api/v{version}/Todo/InsertTodo?key={key}
Inserts a todo in the system
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
key |
The API key from the system |
string |
Required |
version | string |
None. |
Body Parameters
Defines the todo to be inserted
TodoInDTOName | Description | Type | Additional information |
---|---|---|---|
AssetRegistrationNumber |
Registration of the car, eg. 1-ABC-123 |
string |
None. |
Attachments |
The todo attachments (Base64 encoded) |
Collection of AttachmentInDto |
None. |
DateNotified |
The date when the todo was notified |
date |
None. |
DateOfExecution |
The date when the todo will be executed |
date |
None. |
ExternalID |
The identifier of the external program |
string |
None. |
ExtraInformation |
Extra information you can pass to the todo |
string |
None. |
Mileage |
The current mileage of the car |
integer |
None. |
PlanningsCode |
The code of the planningscode, this should be present in the system |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "AssetRegistrationNumber": "sample string 1", "Attachments": [ { "AttachmentData": "sample string 1", "FileName": "sample string 2" }, { "AttachmentData": "sample string 1", "FileName": "sample string 2" } ], "DateNotified": "2024-05-07T15:42:03.6992289+02:00", "DateOfExecution": "2024-05-07T15:42:03.6992289+02:00", "ExternalID": "sample string 4", "ExtraInformation": "sample string 5", "Mileage": 6, "PlanningsCode": "sample string 7" }
Response Information
Resource Description
A success or not found response message
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |