POST api/Parcel/Edit?authToken={authToken}
Edits the user specified by the authentication token.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| authToken |
The authentication token. |
string |
Required |
Body Parameters
The entity model.
ParcelEditModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
Required |
|
| Name | string |
Required Max length: 256 |
|
| Comments | string |
Max length: 256 |
|
| Reference | string |
Max length: 20 |
|
| ATCode | string |
Max length: 80 |
|
| InsuranceType | InsuranceType |
None. |
|
| InsuranceLevelId | globally unique identifier |
None. |
|
| CollectionAddress | string |
Required Max length: 256 |
|
| CollectionZipCode | string |
Required Max length: 128 |
|
| CollectionPhone | string |
Max length: 256 |
|
| CollectionName | string |
Max length: 256 |
|
| CollectionCity | string |
Required Max length: 128 |
|
| CollectionCountry | globally unique identifier |
Required |
|
| DestinationName | string |
Max length: 256 |
|
| DestinationEmail | string |
Required Max length: 128 |
|
| DestinationPhone | string |
Max length: 128 |
|
| DestinationAddress | string |
Required Max length: 190 |
|
| DestinationZipCode | string |
Required Max length: 128 |
|
| DestinationCity | string |
Required Max length: 128 |
|
| DestinationCountry | globally unique identifier |
Required |
|
| Packages | Collection of PackageEditModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "ede945a4-14c2-487c-b19b-093504b3e567",
"Name": "sample string 2",
"Comments": "sample string 3",
"Reference": "sample string 4",
"ATCode": "sample string 5",
"InsuranceType": 1,
"InsuranceLevelId": "b11d4b88-046e-4bc4-8a50-266a98535e1e",
"CollectionAddress": "sample string 6",
"CollectionZipCode": "sample string 7",
"CollectionPhone": "sample string 8",
"CollectionName": "sample string 9",
"CollectionCity": "sample string 10",
"CollectionCountry": "f5bb9ab0-3cf2-4015-a337-0a4942d3f5c5",
"DestinationName": "sample string 12",
"DestinationEmail": "sample string 13",
"DestinationPhone": "sample string 14",
"DestinationAddress": "sample string 15",
"DestinationZipCode": "sample string 16",
"DestinationCity": "sample string 17",
"DestinationCountry": "306b3739-c042-43e6-a75e-e8d46cc69985",
"Packages": [
{
"Name": "sample string 1",
"Weight": 1.0,
"Height": 1.0,
"Width": 1.0,
"Length": 1.0,
"ExternalCode": 1,
"ExternalOperatorId": "1c5c9655-4b1e-4bc5-a8dc-608c789b58f7",
"Id": "7cc3cdea-e71b-4d98-9d5b-ee8cd1d20299",
"BidParcelId": "sample string 3"
},
{
"Name": "sample string 1",
"Weight": 1.0,
"Height": 1.0,
"Width": 1.0,
"Length": 1.0,
"ExternalCode": 1,
"ExternalOperatorId": "1c5c9655-4b1e-4bc5-a8dc-608c789b58f7",
"Id": "7cc3cdea-e71b-4d98-9d5b-ee8cd1d20299",
"BidParcelId": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<ParcelEditModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOP.Apps.Web.Areas.Api.Models">
<ATCode>sample string 5</ATCode>
<CollectionAddress>sample string 6</CollectionAddress>
<CollectionCity>sample string 10</CollectionCity>
<CollectionCountry>f5bb9ab0-3cf2-4015-a337-0a4942d3f5c5</CollectionCountry>
<CollectionName>sample string 9</CollectionName>
<CollectionPhone>sample string 8</CollectionPhone>
<CollectionZipCode>sample string 7</CollectionZipCode>
<Comments>sample string 3</Comments>
<DestinationAddress>sample string 15</DestinationAddress>
<DestinationCity>sample string 17</DestinationCity>
<DestinationCountry>306b3739-c042-43e6-a75e-e8d46cc69985</DestinationCountry>
<DestinationEmail>sample string 13</DestinationEmail>
<DestinationName>sample string 12</DestinationName>
<DestinationPhone>sample string 14</DestinationPhone>
<DestinationZipCode>sample string 16</DestinationZipCode>
<Id>ede945a4-14c2-487c-b19b-093504b3e567</Id>
<InsuranceLevelId>b11d4b88-046e-4bc4-8a50-266a98535e1e</InsuranceLevelId>
<InsuranceType>InsuranceFixedValue</InsuranceType>
<Name>sample string 2</Name>
<Packages>
<PackageEditModel>
<BidParcelId>sample string 3</BidParcelId>
<ExternalCode>1</ExternalCode>
<ExternalOperatorId>1c5c9655-4b1e-4bc5-a8dc-608c789b58f7</ExternalOperatorId>
<Height>1</Height>
<Id>7cc3cdea-e71b-4d98-9d5b-ee8cd1d20299</Id>
<Length>1</Length>
<Name>sample string 1</Name>
<Weight>1</Weight>
<Width>1</Width>
</PackageEditModel>
<PackageEditModel>
<BidParcelId>sample string 3</BidParcelId>
<ExternalCode>1</ExternalCode>
<ExternalOperatorId>1c5c9655-4b1e-4bc5-a8dc-608c789b58f7</ExternalOperatorId>
<Height>1</Height>
<Id>7cc3cdea-e71b-4d98-9d5b-ee8cd1d20299</Id>
<Length>1</Length>
<Name>sample string 1</Name>
<Weight>1</Weight>
<Width>1</Width>
</PackageEditModel>
</Packages>
<Reference>sample string 4</Reference>
</ParcelEditModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ServiceResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorCode | ServiceErrorCode |
None. |
|
| ErrorMessage | Collection of string |
None. |
|
| Success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"ErrorCode": 0,
"ErrorMessage": [
"sample string 1",
"sample string 2"
],
"Success": true
}
application/xml, text/xml
Sample:
<ServiceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BOP.Common.Infrastructure.ApiObjects.Results">
<ErrorCode>None</ErrorCode>
<ErrorMessage xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ErrorMessage>
<Success>true</Success>
</ServiceResult>