POST api/hirev2/offhirev2
Set equipment on hire
Request Information
URI Parameters
None.
Body Parameters
OffHireV2ModelName | Description | Type | Additional information |
---|---|---|---|
token |
The token returned after login used for authentication |
string |
None. |
userID |
The userid returned after login used for authentication |
unsigned integer |
None. |
equipmentList |
A list of equipment to be taken off hire |
Collection of OffHireV2EquipmentModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "token": "sample string 1", "userID": 2, "equipmentList": [ { "ecode": "sample string 1", "commCode": "sample string 2", "contractCode": "sample string 3", "customerCode": "sample string 4", "customerName": "sample string 5", "actualOffHireDate": "2025-04-27T16:20:51.4437176+00:00" }, { "ecode": "sample string 1", "commCode": "sample string 2", "contractCode": "sample string 3", "customerCode": "sample string 4", "customerName": "sample string 5", "actualOffHireDate": "2025-04-27T16:20:51.4437176+00:00" } ] }
application/xml, text/xml
Sample:
<OffHireV2Model xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <token>sample string 1</token> <userID>2</userID> <equipmentList> <OffHireV2EquipmentModel> <ecode>sample string 1</ecode> <commCode>sample string 2</commCode> <contractCode>sample string 3</contractCode> <customerCode>sample string 4</customerCode> <customerName>sample string 5</customerName> <actualOffHireDate>2025-04-27T16:20:51.4437176+00:00</actualOffHireDate> </OffHireV2EquipmentModel> <OffHireV2EquipmentModel> <ecode>sample string 1</ecode> <commCode>sample string 2</commCode> <contractCode>sample string 3</contractCode> <customerCode>sample string 4</customerCode> <customerName>sample string 5</customerName> <actualOffHireDate>2025-04-27T16:20:51.4437176+00:00</actualOffHireDate> </OffHireV2EquipmentModel> </equipmentList> </OffHireV2Model>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
A HireResponseModel indicating if the device was associated successfully
HireResponseModelName | Description | Type | Additional information |
---|---|---|---|
request_status |
Status indicating if a web service call was successful |
boolean |
None. |
request_message |
Any extra information indicating why a call was not successful |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "request_status": true, "request_message": "sample string 2" }
application/xml, text/xml
Sample:
<HireResponseModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <request_status>true</request_status> <request_message>sample string 2</request_message> </HireResponseModel>