> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hologram.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Change SIM data plans in bulk using the REST API

> Collect link IDs and plan details, then change plans for many SIMs via the REST API.

## How do I use the REST API to change data plans in bulk?

<Steps>
  <Step title="Get link IDs for devices">
    ```bash cURL theme={null}
    curl --request GET \
      'https://dashboard.hologram.io/api/1/devices?orgid={ORG_ID}' \
      -u apikey:YOUR_HOLOGRAM_API_KEY
    ```
  </Step>

  <Step title="Get plan details">
    ```bash cURL theme={null}
    curl --request GET \
      'https://dashboard.hologram.io/api/1/plans?orgid={ORG_ID}' \
      -u apikey:YOUR_HOLOGRAM_API_KEY
    ```
  </Step>

  <Step title="Change plans">
    ```bash cURL theme={null}
    curl --request POST \
      'https://dashboard.hologram.io/api/1/links/cellular/changeplan' \
      -u apikey:YOUR_HOLOGRAM_API_KEY \
      --header 'Content-Type: application/json' \
      --data-raw '{
        "linkids": [LINKID_1, LINKID_2],
        "plan": PLAN_ID,
        "tier": "{PLAN_ZONE}",
        "orgid": ORG_ID
      }'
    ```
  </Step>
</Steps>

## Related actions

<Card title="Dashboard bulk actions" href="/dashboard/sim-actions/change-data-plans" horizontal>
  Change data plans in your dashboard. Limited to 10 SIMs at a time.
</Card>
