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

Create a AgentNetwork

Request Information

Parameters

NameDescriptionAdditional information
agentNetworkDTO

Define this parameter in the request body.

AgentID

Define this parameter in the request URI.

Request body formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json, text/json

Sample:
{
  "TheID": 1,
  "Network": {
    "Code": "sample string 2",
    "Name": "sample string 2 - sample string 3"
  },
  "RefNumber": "sample string 3",
  "ValidFrom": "2025-04-24T12:31:10.2579722Z",
  "ValidTo": "2025-04-24T12:31:10.2579722Z"
}

application/xml, text/xml

Sample:
<AgentNetworkDTO>
  <TheID>1</TheID>
  <Network>
    <Code>sample string 2</Code>
    <Name>sample string 2 - sample string 3</Name>
  </Network>
  <RefNumber>sample string 3</RefNumber>
  <ValidFrom>2025-04-24T12:31:10.2579722+00:00</ValidFrom>
  <ValidTo>2025-04-24T12:31:10.2579722+00:00</ValidTo>
</AgentNetworkDTO>

Response Information

Response body formats

application/json, text/json

Sample:
{
  "TheID": 1,
  "Network": {
    "Code": "sample string 2",
    "Name": "sample string 2 - sample string 3"
  },
  "RefNumber": "sample string 3",
  "ValidFrom": "2025-04-24T12:31:10.2736026Z",
  "ValidTo": "2025-04-24T12:31:10.2736026Z"
}

application/xml, text/xml

Sample:
<AgentNetworkDTO>
  <TheID>1</TheID>
  <Network>
    <Code>sample string 2</Code>
    <Name>sample string 2 - sample string 3</Name>
  </Network>
  <RefNumber>sample string 3</RefNumber>
  <ValidFrom>2025-04-24T12:31:10.2736026+00:00</ValidFrom>
  <ValidTo>2025-04-24T12:31:10.2736026+00:00</ValidTo>
</AgentNetworkDTO>