Create a Private Wireless Gateway
posthttps://api.telnyx.com/v2/private_wireless_gatewaysAsynchronously create a Private Wireless Gateway for SIM cards for a previously created network.
curl -X POST \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "Authorization: Bearer YOUR_API_KEY" \
--data '{"network_id":"6a09cdc3-8948-47f0-aa62-74ac943d6c58","name":"My private wireless gateway"}' \
https://api.telnyx.com/v2/private_wireless_gateways
Parameters
In Body (application/json)
network_id
string
(uuid)required
The identification of the related network resource.
Example: "6a09cdc3-8948-47f0-aa62-74ac943d6c58"name
string
()required
The private wireless gateway name.
Example: "My private wireless gateway"Responses
202
Successful response
422
Unprocessable entity. Check the 'detail' field in response for details.
default
Unexpected error
Success Response
{
"data": {
"assigned_resources": [
{
"count": 1,
"record_type": "sim_card_group"
}
],
"created_at": "2018-02-02T22:25:27.521Z",
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"ip_range": "100.64.1.0/24",
"name": "My private wireless gateway",
"network_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "private_wireless_gateway",
"region_code": "ashburn-va",
"status": {
"error_code": "string",
"error_description": "string",
"value": "provisioned"
},
"updated_at": "2018-02-02T22:25:27.521Z"
}
}