Create Default Gateway.
POST/networks/:id/default_gateway
Create Default Gateway.
Request
Path Parameters
id uuidrequired
Identifies the resource.
- application/json
Body
required
wireguard_peer_id uuid
Wireguard peer ID.
Responses
200: Successful response
- application/json
default: Unexpected error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/networks/:id/default_gateway' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"wireguard_peer_id": "e66c496d-4a85-423b-8b2a-8e63fac20320"
}'
Response samples
{
"data": [
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": true,
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"network_id": "e66c496d-4a85-423b-8b2a-8e63fac20320",
"wireguard_peer_id": "e66c496d-4a85-423b-8b2a-8e63fac20320",
"status": "provisioned"
}
],
"meta": {
"total_pages": 3,
"total_results": 55,
"page_number": 2,
"page_size": 25
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}