---
title: "Create and set an APN for an eSIM subscription"
method: POST
path: "/devices/{deviceId}/esim/apn"
tags: ["Tools"]
---

# Create and set an APN for an eSIM subscription

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

## Path parameters

- `deviceId` string, required

## Headers

- `X-Device-Display-ID` integer

## Request body

- SetAPNBody
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `apn` string, required
  - `mcc` string, required
  - `mnc` string, required
  - `name` string, required
  - `protocol` string, required
  - `roamingProtocol` string, required
  - `subId` integer, required
  - `type` string, required

## Response `204`

No Content

## Other responses

- `default` — Error

---

[API](https://skmtc.net/droidrun/apis/droidrun-cloud.md) · [All operations](https://skmtc.net/droidrun/apis/droidrun-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/droidrun/droidrun-cloud/versions/7f577998739b/schema)
