POST api/v1/Agents/{AgentID}/SeaCarriers

POST Agent

Request Information

Parameters

NameDescriptionAdditional information
AgentID

Define this parameter in the request URI.

seaCarrierDTO

Define this parameter in the request body.

Request body formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "SCAC": "sample string 3",
  "IsActivated": true
}

application/xml, text/xml

Sample:
<AgentSeaCarrierDTO>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <SCAC>sample string 3</SCAC>
  <IsActivated>true</IsActivated>
</AgentSeaCarrierDTO>

Response Information

Response body formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "SCAC": "sample string 3",
  "IsActivated": true
}

application/xml, text/xml

Sample:
<AgentSeaCarrierDTO>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <SCAC>sample string 3</SCAC>
  <IsActivated>true</IsActivated>
</AgentSeaCarrierDTO>