PUT PurchaseContract/UpdatePurchaseContractAmendment
Update a purchase contract amendment
Request Information
URI Parameters
Body Parameters
An updated shape of a purchase contract
ClsGrPurConAmendUpdate| Name | Description | Type | Additional Information |
|---|---|---|---|
| PurchaseContractGuid |
Guid of the contract - will be used to look up the contract |
globally unique identifier |
Required |
| PurConAmendGuid |
Guid of the contract amendment - will be used to look up the contract |
globally unique identifier |
Required |
| ContractSigned | boolean |
Required |
Request Formats
application/json, text/json
{
"PurchaseContractGuid": "a2e068af-2914-4f44-a007-368ade286c75",
"PurConAmendGuid": "928f2e50-65c3-47b8-b261-73354d88c87b",
"ContractSigned": true
}
application/xml, text/xml
<ClsGrPurCon.ClsGrPurConAmendUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SKY.Core.Grain"> <ContractSigned>true</ContractSigned> <PurConAmendGuid>928f2e50-65c3-47b8-b261-73354d88c87b</PurConAmendGuid> <PurchaseContractGuid>a2e068af-2914-4f44-a007-368ade286c75</PurchaseContractGuid> </ClsGrPurCon.ClsGrPurConAmendUpdate>
application/x-www-form-urlencoded
Response Information
Resource Description
Update a purchase contract amendment
AgvPurchaseContractAmend| Name | Description | Type | Additional Information |
|---|---|---|---|
| Status |
0 - Success; 1 - An error occurred; 2 - An error occurred; 3 - Descriptive message, process was successful |
string | |
| Message |
Informational message that corresponds to the Status returned; 0 - Message will be "OK"; 1 - Detailed message returned to give user an indication of what went wrong; 2 - Less detailed message returned that may not mean anything to the user but that the application might use to take a corrective action; 3 - Not an error but something the user might need to know |
string | |
| ErrorList |
List of error messages by the API call |
Collection of string | |
| WarningList |
List of warning messages by the API call |
Collection of string |
Response Formats
application/json, text/json
{
"Status": "sample string 1",
"Message": "sample string 2",
"ErrorList": [
"sample string 1",
"sample string 2"
],
"WarningList": [
"sample string 1",
"sample string 2"
]
}
application/xml, text/xml
<AgvPurchaseContractAmend xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AgvWebAPICSharp.Models.Contract.Purchase">
<ErrorList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ErrorList>
<Message>sample string 2</Message>
<Status>sample string 1</Status>
<WarningList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</WarningList>
</AgvPurchaseContractAmend>