Skip to main content

Request Private Wireless Gateway assignment for SIM card group

POST 
/sim_card_groups/:id/actions/set_private_wireless_gateway

This action will asynchronously assign a provisioned Private Wireless Gateway to the SIM card group. Completing this operation defines that all SIM cards in the SIM card group will get their traffic controlled by the associated Private Wireless Gateway. This operation will also imply that new SIM cards assigned to a group will inherit its network definitions. If it's moved to a different group that doesn't have a Private Wireless Gateway, it'll use Telnyx's default mobile network configuration.

Request

Path Parameters

    id uuidrequired

    Identifies the SIM group.

Body

required

    private_wireless_gateway_id uuidrequired

    The identification of the related Private Wireless Gateway resource.

Responses

202: Successful Response

401: Unauthorized

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/sim_card_groups/:id/actions/set_private_wireless_gateway' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
}'

Response samples


{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "sim_card_group_action",
"sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"type": "set_private_wireless_gateway",
"status": "in-progress",
"settings": {
"private_wireless_gateway_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58"
},
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
}