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.
ParcelEditModelName | 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": "255e09d3-8a39-4cd9-9ffd-2487f94605de", "Name": "sample string 2", "Comments": "sample string 3", "Reference": "sample string 4", "ATCode": "sample string 5", "InsuranceType": 1, "InsuranceLevelId": "8b200feb-4196-42c6-95bf-8e6df554f0d0", "CollectionAddress": "sample string 6", "CollectionZipCode": "sample string 7", "CollectionPhone": "sample string 8", "CollectionName": "sample string 9", "CollectionCity": "sample string 10", "CollectionCountry": "cbd22471-f0b6-41dc-8ddc-949c125d8da2", "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": "dfa226e2-b473-4e10-afa5-b1ea082571db", "Packages": [ { "Name": "sample string 1", "Weight": 1.0, "Height": 1.0, "Width": 1.0, "Length": 1.0, "ExternalCode": 1, "ExternalOperatorId": "898dfdc1-5c38-4381-a901-620c1881f3c8", "Id": "fdd1718f-2767-4be7-83bf-e363b826519d", "BidParcelId": "sample string 3" }, { "Name": "sample string 1", "Weight": 1.0, "Height": 1.0, "Width": 1.0, "Length": 1.0, "ExternalCode": 1, "ExternalOperatorId": "898dfdc1-5c38-4381-a901-620c1881f3c8", "Id": "fdd1718f-2767-4be7-83bf-e363b826519d", "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>cbd22471-f0b6-41dc-8ddc-949c125d8da2</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>dfa226e2-b473-4e10-afa5-b1ea082571db</DestinationCountry> <DestinationEmail>sample string 13</DestinationEmail> <DestinationName>sample string 12</DestinationName> <DestinationPhone>sample string 14</DestinationPhone> <DestinationZipCode>sample string 16</DestinationZipCode> <Id>255e09d3-8a39-4cd9-9ffd-2487f94605de</Id> <InsuranceLevelId>8b200feb-4196-42c6-95bf-8e6df554f0d0</InsuranceLevelId> <InsuranceType>InsuranceFixedValue</InsuranceType> <Name>sample string 2</Name> <Packages> <PackageEditModel> <BidParcelId>sample string 3</BidParcelId> <ExternalCode>1</ExternalCode> <ExternalOperatorId>898dfdc1-5c38-4381-a901-620c1881f3c8</ExternalOperatorId> <Height>1</Height> <Id>fdd1718f-2767-4be7-83bf-e363b826519d</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>898dfdc1-5c38-4381-a901-620c1881f3c8</ExternalOperatorId> <Height>1</Height> <Id>fdd1718f-2767-4be7-83bf-e363b826519d</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
ServiceResultName | 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>