PUT api/v1/msdb/Agents/{msdbId}/networks

Add,Update and Delete WCA Network in WIN Agent

Request Information

Parameters

NameDescriptionAdditional information
msdbId

Define this parameter in the request URI.

networks

Define this parameter in the request body.

Request body formats

application/x-www-form-urlencoded

Sample:

Sample not available.

application/json, text/json

Sample:
[
  {
    "IsActivated": true,
    "TheID": 2,
    "Network": {
      "Code": "sample string 2",
      "Name": "sample string 2 - sample string 3"
    },
    "RefNumber": "sample string 4",
    "ValidFrom": "2025-04-24T12:12:34.336255Z",
    "ValidTo": "2025-04-24T12:12:34.336255Z"
  },
  {
    "IsActivated": true,
    "TheID": 2,
    "Network": {
      "Code": "sample string 2",
      "Name": "sample string 2 - sample string 3"
    },
    "RefNumber": "sample string 4",
    "ValidFrom": "2025-04-24T12:12:34.336255Z",
    "ValidTo": "2025-04-24T12:12:34.336255Z"
  },
  {
    "IsActivated": true,
    "TheID": 2,
    "Network": {
      "Code": "sample string 2",
      "Name": "sample string 2 - sample string 3"
    },
    "RefNumber": "sample string 4",
    "ValidFrom": "2025-04-24T12:12:34.336255Z",
    "ValidTo": "2025-04-24T12:12:34.336255Z"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAgentMSDBNetworkDTO>
  <AgentMSDBNetworkDTO>
    <TheID>2</TheID>
    <Network>
      <Code>sample string 2</Code>
      <Name>sample string 2 - sample string 3</Name>
    </Network>
    <RefNumber>sample string 4</RefNumber>
    <ValidFrom>2025-04-24T12:12:34.336255+00:00</ValidFrom>
    <ValidTo>2025-04-24T12:12:34.336255+00:00</ValidTo>
    <IsActivated>true</IsActivated>
  </AgentMSDBNetworkDTO>
  <AgentMSDBNetworkDTO>
    <TheID>2</TheID>
    <Network>
      <Code>sample string 2</Code>
      <Name>sample string 2 - sample string 3</Name>
    </Network>
    <RefNumber>sample string 4</RefNumber>
    <ValidFrom>2025-04-24T12:12:34.336255+00:00</ValidFrom>
    <ValidTo>2025-04-24T12:12:34.336255+00:00</ValidTo>
    <IsActivated>true</IsActivated>
  </AgentMSDBNetworkDTO>
  <AgentMSDBNetworkDTO>
    <TheID>2</TheID>
    <Network>
      <Code>sample string 2</Code>
      <Name>sample string 2 - sample string 3</Name>
    </Network>
    <RefNumber>sample string 4</RefNumber>
    <ValidFrom>2025-04-24T12:12:34.336255+00:00</ValidFrom>
    <ValidTo>2025-04-24T12:12:34.336255+00:00</ValidTo>
    <IsActivated>true</IsActivated>
  </AgentMSDBNetworkDTO>
</ArrayOfAgentMSDBNetworkDTO>

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:12:34.367502Z",
    "ValidTo": "2025-04-24T12:12:34.367502Z"
  },
  {
    "TheID": 1,
    "Network": {
      "Code": "sample string 2",
      "Name": "sample string 2 - sample string 3"
    },
    "RefNumber": "sample string 3",
    "ValidFrom": "2025-04-24T12:12:34.367502Z",
    "ValidTo": "2025-04-24T12:12:34.367502Z"
  },
  {
    "TheID": 1,
    "Network": {
      "Code": "sample string 2",
      "Name": "sample string 2 - sample string 3"
    },
    "RefNumber": "sample string 3",
    "ValidFrom": "2025-04-24T12:12:34.367502Z",
    "ValidTo": "2025-04-24T12:12:34.367502Z"
  }
]

application/xml, text/xml

Sample:
<ArrayOfAgentNetworkDTO>
  <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:12:34.367502+00:00</ValidFrom>
    <ValidTo>2025-04-24T12:12:34.367502+00:00</ValidTo>
  </AgentNetworkDTO>
  <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:12:34.367502+00:00</ValidFrom>
    <ValidTo>2025-04-24T12:12:34.367502+00:00</ValidTo>
  </AgentNetworkDTO>
  <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:12:34.367502+00:00</ValidFrom>
    <ValidTo>2025-04-24T12:12:34.367502+00:00</ValidTo>
  </AgentNetworkDTO>
</ArrayOfAgentNetworkDTO>