Skip to main content

Update a SIM card group

PATCH 
/sim_card_groups/:id

Updates a SIM card group

Request

Path Parameters

    id uuidrequired

    Identifies the SIM group.

Body

required

    name string

    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 -X PATCH 'https://api.telnyx.com/v2/sim_card_groups/:id' \
-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"
}
}