Update a Network
PATCH/networking/networks/:id
Update the details of a network
Request
Path Parameters
id stringrequired
The id
of the IP address
- application/json
Body
resource_group_id string
The id
of the resource group the network is assigned to
site_ids string[]
The list of site id
s that you want to add to the network.
Responses
200: Successful response
- application/json
401: Authentication error
- application/json
403: Authorization error
- application/json
422: Invalid parameters supplied in request. See HTTP response body for details.
- application/json
Request samples
curl -L -X PATCH 'https://api.telnyx.com/networking/networks/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{
"resource_group_id": "string",
"site_ids": [
"string"
]
}'
Response samples
{
"data": {
"id": 0,
"site_ids": [
"string"
],
"ip_address_count": 0,
"name": "string",
"record_type": "string",
"resource_group_id": "string",
"site_count": 0,
"transit_count": 0,
"transport_count": 0,
"vxc_count": 0
}
}
{
"errors": [
{
"code": "10001",
"title": "error title",
"detail": "additional detail about the error",
"pointer": "/pointer/to/field"
}
]
}
{
"errors": [
{
"code": "10001",
"title": "error title",
"detail": "additional detail about the error",
"pointer": "/pointer/to/field"
}
]
}
{
"errors": [
{
"code": "10001",
"title": "error title",
"detail": "additional detail about the error",
"pointer": "/pointer/to/field"
}
]
}