POST api/authorizations/SparePartData
Request Information
URI Parameters
None.
Body Parameters
RestSparePartDataDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| CompanyCode | string |
None. |
|
| AuthorizationId | integer |
None. |
|
| Reference | string |
None. |
|
| ReferenceAFT | string |
None. |
|
| SituationDesc | string |
None. |
|
| SituationDate | string |
None. |
|
| SituationComplete | boolean |
None. |
|
| RqUID | string |
String length: inclusive between 0 and 36 |
Request Formats
application/json, text/json
Sample:
{
"CompanyCode": "sample string 1",
"AuthorizationId": 1,
"Reference": "sample string 2",
"ReferenceAFT": "sample string 3",
"SituationDesc": "sample string 4",
"SituationDate": "sample string 5",
"SituationComplete": true,
"RqUID": "sample string 6"
}
application/xml, text/xml
Sample:
<RestSparePartDataDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GtMotive.GtGlobal.Common.DTO.Rest.Authorization"> <RqUID xmlns="http://schemas.datacontract.org/2004/07/GtMotive.GtGlobal.Common.DTO.Rest.Shared">sample string 6</RqUID> <AuthorizationId>1</AuthorizationId> <CompanyCode>sample string 1</CompanyCode> <Reference>sample string 2</Reference> <ReferenceAFT>sample string 3</ReferenceAFT> <SituationComplete>true</SituationComplete> <SituationDate>sample string 5</SituationDate> <SituationDesc>sample string 4</SituationDesc> </RestSparePartDataDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
RestBasicResponseDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | string |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": "sample string 1",
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<RestBasicResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GtMotive.GtGlobal.Common.DTO.Rest.Shared"> <Code>sample string 1</Code> <Message>sample string 2</Message> </RestBasicResponseDTO>