Skip to main content

Create a SIM card group

POST 
/sim_card_groups

Creates a new SIM card group object

Request

Body

required

    name stringrequired

    A user friendly name for the SIM card group.

    data_limit

    object

    Upper limit on the amount of data the SIM cards, within the group, can use.

    amount decimal
    unit string

    Upper limit on the amount of data the SIM cards, within the group, can use.

Responses

200: Successful Response

401: Unauthorized

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/sim_card_groups' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"name": "My Test Group",
"data_limit": {
"amount": "2048.1",
"unit": "MB"
}
}'

Response samples


{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "sim_card_group",
"default": true,
"name": "My Test Group",
"data_limit": {
"amount": "2048.1",
"unit": "MB"
},
"consumed_data": {
"unit": "MB",
"amount": "2048.1"
},
"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"
}
}