POST api/ExportPermitAmend/Update

Request Information

URI Parameters

None.

Body Parameters

ExportPermitAmendViewModel
NameDescriptionTypeAdditional information
Id

string

None.

ExportPermitId

string

None.

IsNRCType

boolean

None.

IsNRC

boolean

None.

IsOldNRC

boolean

None.

IsConsigneeName

boolean

None.

IsConsigneeAddress

boolean

None.

IsBuyerCountryId

boolean

None.

IsModeofTransport

boolean

None.

IsPortofExportId

boolean

None.

IsPortofDischarge

boolean

None.

IsDestinationCountryId

boolean

None.

IsConsignedCountryId

boolean

None.

IsCountryofOriginId

boolean

None.

IsPermitType

boolean

None.

IsCommodityType

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "ExportPermitId": "sample string 2",
  "IsNRCType": true,
  "IsNRC": true,
  "IsOldNRC": true,
  "IsConsigneeName": true,
  "IsConsigneeAddress": true,
  "IsBuyerCountryId": true,
  "IsModeofTransport": true,
  "IsPortofExportId": true,
  "IsPortofDischarge": true,
  "IsDestinationCountryId": true,
  "IsConsignedCountryId": true,
  "IsCountryofOriginId": true,
  "IsPermitType": true,
  "IsCommodityType": true
}

application/xml, text/xml

Sample:
<ExportPermitAmendViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
  <ExportPermitId>sample string 2</ExportPermitId>
  <Id>sample string 1</Id>
  <IsBuyerCountryId>true</IsBuyerCountryId>
  <IsCommodityType>true</IsCommodityType>
  <IsConsignedCountryId>true</IsConsignedCountryId>
  <IsConsigneeAddress>true</IsConsigneeAddress>
  <IsConsigneeName>true</IsConsigneeName>
  <IsCountryofOriginId>true</IsCountryofOriginId>
  <IsDestinationCountryId>true</IsDestinationCountryId>
  <IsModeofTransport>true</IsModeofTransport>
  <IsNRC>true</IsNRC>
  <IsNRCType>true</IsNRCType>
  <IsOldNRC>true</IsOldNRC>
  <IsPermitType>true</IsPermitType>
  <IsPortofDischarge>true</IsPortofDischarge>
  <IsPortofExportId>true</IsPortofExportId>
</ExportPermitAmendViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ExportPermitAmendViewModel'.

Response Information

Resource Description

Collection of ResponseMessage
NameDescriptionTypeAdditional information
Id

string

None.

ReferenceNo

string

None.

WholeSaleRegistrationId

string

None.

MessageType

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": "sample string 1",
    "ReferenceNo": "sample string 2",
    "WholeSaleRegistrationId": "sample string 3",
    "MessageType": 4,
    "Message": "sample string 5"
  },
  {
    "Id": "sample string 1",
    "ReferenceNo": "sample string 2",
    "WholeSaleRegistrationId": "sample string 3",
    "MessageType": 4,
    "Message": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfResponseMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/API.Models">
  <ResponseMessage>
    <Id>sample string 1</Id>
    <Message>sample string 5</Message>
    <MessageType>4</MessageType>
    <ReferenceNo>sample string 2</ReferenceNo>
    <WholeSaleRegistrationId>sample string 3</WholeSaleRegistrationId>
  </ResponseMessage>
  <ResponseMessage>
    <Id>sample string 1</Id>
    <Message>sample string 5</Message>
    <MessageType>4</MessageType>
    <ReferenceNo>sample string 2</ReferenceNo>
    <WholeSaleRegistrationId>sample string 3</WholeSaleRegistrationId>
  </ResponseMessage>
</ArrayOfResponseMessage>