---
title: "Update a SIM card"
method: PATCH
path: "/sim_cards/{id}"
tags: ["SIM Cards"]
---

# Update a SIM card

`PATCH /sim_cards/{id}`

Updates the specified SIM card's attributes and returns the updated SIM card.

## Path parameters

- `id` string, uuid, required

## Request body

- SIMCard
  - `actions_in_progress` boolean — Indicate whether the SIM card has any pending (in-progress) actions.
  - `authorized_imeis` string[], nullable — List of IMEIs authorized to use a given SIM card.
  - `created_at` string — ISO 8601 formatted date-time indicating when the resource was created.
  - `current_billing_period_consumed_data` object — The SIM card consumption so far in the current billing cycle.
    - `amount` string
    - `unit` string
  - `current_device_location` object — Current physical location data of a given SIM card. Accuracy is given in meters.
    - `accuracy` integer
    - `accuracy_unit` string
    - `latitude` string
    - `longitude` string
  - `current_imei` string — IMEI of the device where a given SIM card is currently being used.
  - `current_mcc` string — Mobile Country Code of the current network to which the SIM card is connected. It's a three decimal digit that identifies a country.<br/><br/> This code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code.
  - `current_mnc` string — Mobile Network Code of the current network to which the SIM card is connected. It's a two to three decimal digits that identify a network.<br/><br/> This code is commonly seen joined with a Mobile Country Code (MCC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code.
  - `data_limit` object — The SIM card individual data limit configuration.
    - `amount` string
    - `unit` 'MB' | 'GB'
  - `eid` string, nullable — The Embedded Identity Document (eID) for eSIM cards.
  - `esim_installation_status` 'released' | 'disabled', nullable — The installation status of the eSIM. Only applicable for eSIM cards.
  - `iccid` string — The ICCID is the identifier of the specific SIM card/chip. Each SIM is internationally identified by its integrated circuit card identifier (ICCID). ICCIDs are stored in the SIM card's memory and are also engraved or printed on the SIM card body during a process called personalization.
  - `id` string, uuid — Identifies the resource.
  - `imsi` string — SIM cards are identified on their individual network operators by a unique International Mobile Subscriber Identity (IMSI). <br/> Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR).
  - `ipv4` string — The SIM's address in the currently connected network. This IPv4 address is usually obtained dynamically, so it may vary according to the location or new connections.
  - `ipv6` string — The SIM's address in the currently connected network. This IPv6 address is usually obtained dynamically, so it may vary according to the location or new connections.
  - `live_data_session` 'connected' | 'disconnected' | 'unknown' — Indicates whether the device is actively connected to a network and able to run data.
  - `msisdn` string — Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally. <br/> MSISDN is defined by the E.164 numbering plan. It includes a country code and a National Destination Code which identifies the subscriber's operator.
  - `pin_puk_codes` object — PIN and PUK codes for the SIM card. Only available when include_pin_puk_codes=true is set in the request.
    - `pin1` string — The primary Personal Identification Number (PIN) for the SIM card. This is a 4-digit code used to protect the SIM card from unauthorized use.
    - `pin2` string — The secondary Personal Identification Number (PIN2) for the SIM card. This is a 4-digit code used for additional security features.
    - `puk1` string — The primary Personal Unblocking Key (PUK1) for the SIM card. This is an 8-digit code used to unlock the SIM card if PIN1 is entered incorrectly multiple times.
    - `puk2` string — The secondary Personal Unblocking Key (PUK2) for the SIM card. This is an 8-digit code used to unlock the SIM card if PIN2 is entered incorrectly multiple times.
  - `record_type` string
  - `resources_with_in_progress_actions` object[] — List of resources with actions in progress.
  - `sim_card_group_id` string, uuid — The group SIMCardGroup identification. This attribute can be <code>null</code> when it's present in an associated resource.
  - `status` SIMCardStatus
    - `reason` string — It describes why the SIM card is in the current status.
    - `value` 'registering' | 'enabling' | 'enabled' | 'disabling' | 'disabled' | 'data_limit_exceeded' | 'setting_standby' | 'standby' — The current status of the SIM card. It will be one of the following: <br/> <ul> <li><code>registering</code> - the card is being registered</li> <li><code>enabling</code> - the card is being enabled</li> <li><code>enabled</code> - the card is enabled and ready for use</li> <li><code>disabling</code> - the card is being disabled</li> <li><code>disabled</code> - the card has been disabled and cannot be used</li> <li><code>data_limit_exceeded</code> - the card has exceeded its data consumption limit</li> <li><code>setting_standby</code> - the process to set the card in stand by is in progress</li> <li><code>standby</code> - the card is in stand by</li> </ul> Transitioning between the enabled and disabled states may take a period of time.
  - `tags` string[] — Searchable tags associated with the SIM card
  - `type` 'physical' | 'esim' — The type of SIM card
  - `updated_at` string — ISO 8601 formatted date-time indicating when the resource was updated.
  - `version` string — The version of the SIM card.
  - `voice_enabled` boolean — Indicates whether voice services are enabled for the SIM card.

## Response `200`

Successful response

- object
  - `data` SIMCard
    - `actions_in_progress` boolean — Indicate whether the SIM card has any pending (in-progress) actions.
    - `authorized_imeis` string[], nullable — List of IMEIs authorized to use a given SIM card.
    - `created_at` string — ISO 8601 formatted date-time indicating when the resource was created.
    - `current_billing_period_consumed_data` object — The SIM card consumption so far in the current billing cycle.
      - `amount` string
      - `unit` string
    - `current_device_location` object — Current physical location data of a given SIM card. Accuracy is given in meters.
      - `accuracy` integer
      - `accuracy_unit` string
      - `latitude` string
      - `longitude` string
    - `current_imei` string — IMEI of the device where a given SIM card is currently being used.
    - `current_mcc` string — Mobile Country Code of the current network to which the SIM card is connected. It's a three decimal digit that identifies a country.<br/><br/> This code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code.
    - `current_mnc` string — Mobile Network Code of the current network to which the SIM card is connected. It's a two to three decimal digits that identify a network.<br/><br/> This code is commonly seen joined with a Mobile Country Code (MCC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code.
    - `data_limit` object — The SIM card individual data limit configuration.
      - `amount` string
      - `unit` 'MB' | 'GB'
    - `eid` string, nullable — The Embedded Identity Document (eID) for eSIM cards.
    - `esim_installation_status` 'released' | 'disabled', nullable — The installation status of the eSIM. Only applicable for eSIM cards.
    - `iccid` string — The ICCID is the identifier of the specific SIM card/chip. Each SIM is internationally identified by its integrated circuit card identifier (ICCID). ICCIDs are stored in the SIM card's memory and are also engraved or printed on the SIM card body during a process called personalization.
    - `id` string, uuid — Identifies the resource.
    - `imsi` string — SIM cards are identified on their individual network operators by a unique International Mobile Subscriber Identity (IMSI). <br/> Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR).
    - `ipv4` string — The SIM's address in the currently connected network. This IPv4 address is usually obtained dynamically, so it may vary according to the location or new connections.
    - `ipv6` string — The SIM's address in the currently connected network. This IPv6 address is usually obtained dynamically, so it may vary according to the location or new connections.
    - `live_data_session` 'connected' | 'disconnected' | 'unknown' — Indicates whether the device is actively connected to a network and able to run data.
    - `msisdn` string — Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally. <br/> MSISDN is defined by the E.164 numbering plan. It includes a country code and a National Destination Code which identifies the subscriber's operator.
    - `pin_puk_codes` object — PIN and PUK codes for the SIM card. Only available when include_pin_puk_codes=true is set in the request.
      - `pin1` string — The primary Personal Identification Number (PIN) for the SIM card. This is a 4-digit code used to protect the SIM card from unauthorized use.
      - `pin2` string — The secondary Personal Identification Number (PIN2) for the SIM card. This is a 4-digit code used for additional security features.
      - `puk1` string — The primary Personal Unblocking Key (PUK1) for the SIM card. This is an 8-digit code used to unlock the SIM card if PIN1 is entered incorrectly multiple times.
      - `puk2` string — The secondary Personal Unblocking Key (PUK2) for the SIM card. This is an 8-digit code used to unlock the SIM card if PIN2 is entered incorrectly multiple times.
    - `record_type` string
    - `resources_with_in_progress_actions` object[] — List of resources with actions in progress.
    - `sim_card_group_id` string, uuid — The group SIMCardGroup identification. This attribute can be <code>null</code> when it's present in an associated resource.
    - `status` SIMCardStatus
      - `reason` string — It describes why the SIM card is in the current status.
      - `value` 'registering' | 'enabling' | 'enabled' | 'disabling' | 'disabled' | 'data_limit_exceeded' | 'setting_standby' | 'standby' — The current status of the SIM card. It will be one of the following: <br/> <ul> <li><code>registering</code> - the card is being registered</li> <li><code>enabling</code> - the card is being enabled</li> <li><code>enabled</code> - the card is enabled and ready for use</li> <li><code>disabling</code> - the card is being disabled</li> <li><code>disabled</code> - the card has been disabled and cannot be used</li> <li><code>data_limit_exceeded</code> - the card has exceeded its data consumption limit</li> <li><code>setting_standby</code> - the process to set the card in stand by is in progress</li> <li><code>standby</code> - the card is in stand by</li> </ul> Transitioning between the enabled and disabled states may take a period of time.
    - `tags` string[] — Searchable tags associated with the SIM card
    - `type` 'physical' | 'esim' — The type of SIM card
    - `updated_at` string — ISO 8601 formatted date-time indicating when the resource was updated.
    - `version` string — The version of the SIM card.
    - `voice_enabled` boolean — Indicates whether voice services are enabled for the SIM card.

## Other responses

- `401` — Unauthorized
- `default` — Unexpected error

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/ec31f78cf002/schema)
