---
title: "Select an existing APN as preferred"
method: PUT
path: "/devices/{deviceId}/esim/apn"
tags: ["SIM"]
---

# Select an existing APN as preferred

`PUT /devices/{deviceId}/esim/apn`

Marks an existing APN, identified by apnId, as the preferred APN for the given eSIM subscription in the request body.

## Path parameters

- `deviceId` string, required

## Headers

- `X-Device-Display-ID` integer

## Request body

- SelectAPNBody
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `apnId` integer, required
  - `subId` integer, required

## Response `204`

No Content

## Other responses

- `default` — Error

---

[API](https://skmtc.net/mobilerun/apis/workflows.md) · [All operations](https://skmtc.net/mobilerun/apis/workflows/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mobilerun/workflows/revisions/1bc499aa8f99/schema)
