Skip to main content

Update a SIM card

PATCH 
/sim_cards/:id

Updates SIM card data

Request

Path Parameters

    id uuidrequired

    Identifies the resource.

Body

required

    status

    object

    sim_card_group_id uuid

    The group SIMCardGroup identification. This attribute can be null when it's present in an associated resource.

    tags string[]

    Searchable tags associated with the SIM card

    authorized_imeis int64[]

    List of IMEIs authorized to use a given SIM card.

    data_limit

    object

    The SIM card individual data limit configuration.

    amount decimal
    unit string

    Possible values: [MB, GB]

    The SIM card individual data limit configuration.

Responses

200: Successful response

default: Unexpected error

Request samples


curl -L -X PATCH 'https://api.telnyx.com/v2/sim_cards/:id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"status": {},
"sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"tags": [
"personal",
"customers",
"active-customers"
],
"authorized_imeis": [
"106516771852751",
"534051870479563",
"508821468377961"
],
"data_limit": {
"amount": "2048.1",
"unit": "MB"
}
}'

Response samples


{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "sim_card",
"status": {
"value": "enabled",
"reason": "The SIM card is active, ready to connect to networks and consume data."
},
"type": "physical",
"iccid": "89310410106543789301",
"imsi": "081932214823362973",
"msisdn": "+13109976224",
"sim_card_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"tags": [
"personal",
"customers",
"active-customers"
],
"authorized_imeis": [
"106516771852751",
"534051870479563",
"508821468377961"
],
"current_imei": "457032284023794",
"data_limit": {
"amount": "2048.1",
"unit": "MB"
},
"current_billing_period_consumed_data": {
"amount": "2049.0",
"unit": "MB"
},
"actions_in_progress": true,
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"ipv4": "192.168.0.0",
"ipv6": "2001:cdba:0000:0000:0000:0000:3257:9652",
"current_device_location": {
"latitude": "41.143",
"longitude": "-8.605",
"accuracy": 1250,
"accuracy_unit": "m"
},
"current_mnc": "260",
"current_mcc": "410",
"live_data_session": "connected"
}
}