| PUT | /unit | ||
|---|---|---|---|
| PUT | /unit/{Id} | ||
| GET POST | /UpdateUnit | ||
| GET POST | /UpdateUnit/{Id} |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | path | string | No | |
| Name | body | string | No | |
| ReferenceNumber | body | string | No | |
| ClientId | body | string | No | |
| CategoryId | body | string | No | |
| VehicleType | body | string | No | |
| PreKm | body | double? | No | |
| PreRun1 | body | double? | No | |
| PreRun2 | body | double? | No | |
| Note | body | string | No | |
| IsActive | body | bool? | No | |
| Input1Name | body | string | No | |
| Input2Name | body | string | No | |
| Input3Name | body | string | No | |
| Input4Name | body | string | No | |
| Lock | body | bool? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /UpdateUnit HTTP/1.1
Host: api.trackunit.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id":"String","name":"String","referenceNumber":"String","clientId":"String","categoryId":"String","vehicleType":"String","preKm":0,"preRun1":0,"preRun2":0,"note":"String","isActive":false,"input1Name":"String","input2Name":"String","input3Name":"String","input4Name":"String","lock":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}