POST api/Parcel/Edit?authToken={authToken}

Edits the user specified by the authentication token.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
authToken

The authentication token.

string

Required

Body Parameters

The entity model.

ParcelEditModel
NameDescriptionTypeAdditional 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": "0ae4da71-c524-463d-9541-5d6195cf71d5",
  "Name": "sample string 2",
  "Comments": "sample string 3",
  "Reference": "sample string 4",
  "ATCode": "sample string 5",
  "InsuranceType": 1,
  "InsuranceLevelId": "3b5c4510-cd70-4a08-988e-0dce933280a7",
  "CollectionAddress": "sample string 6",
  "CollectionZipCode": "sample string 7",
  "CollectionPhone": "sample string 8",
  "CollectionName": "sample string 9",
  "CollectionCity": "sample string 10",
  "CollectionCountry": "88167186-d2d1-46c6-afb2-ac94dba25beb",
  "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": "7947c0d4-a99e-437a-8a61-155fd1eb1c78",
  "Packages": [
    {
      "Name": "sample string 1",
      "Weight": 1.0,
      "Height": 1.0,
      "Width": 1.0,
      "Length": 1.0,
      "ExternalCode": 1,
      "ExternalOperatorId": "9d569215-0bb5-4553-b11f-8ec57bbfa720",
      "Id": "afce1d2a-f200-4797-a65d-67053d0792d6",
      "BidParcelId": "sample string 3"
    },
    {
      "Name": "sample string 1",
      "Weight": 1.0,
      "Height": 1.0,
      "Width": 1.0,
      "Length": 1.0,
      "ExternalCode": 1,
      "ExternalOperatorId": "9d569215-0bb5-4553-b11f-8ec57bbfa720",
      "Id": "afce1d2a-f200-4797-a65d-67053d0792d6",
      "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>88167186-d2d1-46c6-afb2-ac94dba25beb</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>7947c0d4-a99e-437a-8a61-155fd1eb1c78</DestinationCountry>
  <DestinationEmail>sample string 13</DestinationEmail>
  <DestinationName>sample string 12</DestinationName>
  <DestinationPhone>sample string 14</DestinationPhone>
  <DestinationZipCode>sample string 16</DestinationZipCode>
  <Id>0ae4da71-c524-463d-9541-5d6195cf71d5</Id>
  <InsuranceLevelId>3b5c4510-cd70-4a08-988e-0dce933280a7</InsuranceLevelId>
  <InsuranceType>InsuranceFixedValue</InsuranceType>
  <Name>sample string 2</Name>
  <Packages>
    <PackageEditModel>
      <BidParcelId>sample string 3</BidParcelId>
      <ExternalCode>1</ExternalCode>
      <ExternalOperatorId>9d569215-0bb5-4553-b11f-8ec57bbfa720</ExternalOperatorId>
      <Height>1</Height>
      <Id>afce1d2a-f200-4797-a65d-67053d0792d6</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>9d569215-0bb5-4553-b11f-8ec57bbfa720</ExternalOperatorId>
      <Height>1</Height>
      <Id>afce1d2a-f200-4797-a65d-67053d0792d6</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
NameDescriptionTypeAdditional 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>