| POST | /v1/Vehicle/SecuredStatus | Set secured status for vehicle |
|---|
package dtos
type ValidateVehicleResponse struct {
Comm string `json:"comm"`
FailureReason *string `json:"failureReason,omitempty"`
FailureReasonId *int `json:"failureReasonId,omitempty"`
}
type ValidateSecuredStatusResponse struct {
ValidateVehicleResponses []ValidateVehicleResponse `json:"validateVehicleResponses"`
}
type SecuredStatusRequest struct {
CommissionNumber string `json:"commissionNumber"`
VehicleType string `json:"vehicleType"`
Reason string `json:"reason"`
Secured bool `json:"secured,omitempty"`
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/Vehicle/SecuredStatus HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"commissionNumber":"String","vehicleType":"String","reason":"String","secured":false}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"validateVehicleResponses":[{}]}