PUT api/v1/msdb/Agents/{msdbId}/networks
Add,Update and Delete WCA Network in WIN Agent
Request Information
Parameters
| Name | Description | Additional 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-10-27T07:02:39.9549519Z",
"ValidTo": "2025-10-27T07:02:39.9549519Z"
},
{
"IsActivated": true,
"TheID": 2,
"Network": {
"Code": "sample string 2",
"Name": "sample string 2 - sample string 3"
},
"RefNumber": "sample string 4",
"ValidFrom": "2025-10-27T07:02:39.9549519Z",
"ValidTo": "2025-10-27T07:02:39.9549519Z"
},
{
"IsActivated": true,
"TheID": 2,
"Network": {
"Code": "sample string 2",
"Name": "sample string 2 - sample string 3"
},
"RefNumber": "sample string 4",
"ValidFrom": "2025-10-27T07:02:39.9549519Z",
"ValidTo": "2025-10-27T07:02:39.9549519Z"
}
]
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-10-27T07:02:39.9549519+00:00</ValidFrom>
<ValidTo>2025-10-27T07:02:39.9549519+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-10-27T07:02:39.9549519+00:00</ValidFrom>
<ValidTo>2025-10-27T07:02:39.9549519+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-10-27T07:02:39.9549519+00:00</ValidFrom>
<ValidTo>2025-10-27T07:02:39.9549519+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-10-27T07:02:39.9704088Z",
"ValidTo": "2025-10-27T07:02:39.9704088Z"
},
{
"TheID": 1,
"Network": {
"Code": "sample string 2",
"Name": "sample string 2 - sample string 3"
},
"RefNumber": "sample string 3",
"ValidFrom": "2025-10-27T07:02:39.9704088Z",
"ValidTo": "2025-10-27T07:02:39.9704088Z"
},
{
"TheID": 1,
"Network": {
"Code": "sample string 2",
"Name": "sample string 2 - sample string 3"
},
"RefNumber": "sample string 3",
"ValidFrom": "2025-10-27T07:02:39.9704088Z",
"ValidTo": "2025-10-27T07:02:39.9704088Z"
}
]
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-10-27T07:02:39.9704088+00:00</ValidFrom>
<ValidTo>2025-10-27T07:02:39.9704088+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-10-27T07:02:39.9704088+00:00</ValidFrom>
<ValidTo>2025-10-27T07:02:39.9704088+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-10-27T07:02:39.9704088+00:00</ValidFrom>
<ValidTo>2025-10-27T07:02:39.9704088+00:00</ValidTo>
</AgentNetworkDTO>
</ArrayOfAgentNetworkDTO>