---
title: "Configure Edge Node for a device"
method: POST
path: "/v2/enm/edge-node-assignment"
tags: ["Edge Node"]
---

# Configure Edge Node for a device

`POST /v2/enm/edge-node-assignment`

## Request

- Base URL: `https://api.alianza.com`
- URL: `https://api.alianza.com/v2/enm/edge-node-assignment`
- Auth: API key in header `X-AUTH-TOKEN`
- TypeScript: <https://skmtc.dev/alianza/apis/alianza-public-api/docs/v2/enm/edge-node-assignment/post.ts> (a function with typed inputs; its response is checked against the schema)

Configure Edge Node for a device

## Request body

- NodeAssignmentUpsert
  - `id` string: Node assignment Id
  - `edgeNodeId` string: Id of Edge Node
  - `deviceId` string: Id of the device

## Response `201`

Created

- NodeAssignment
  - `id` string: Node assignment Id
  - `edgeNodeId` string: Id of Edge Node
  - `deviceId` string: Id of the device
  - `proxyAddress` string

## Other responses

- `401`: Unauthorized
- `404`: Device not found; Node not found
- `422`: Body missing required fields

---

[API](https://skmtc.dev/alianza/apis/alianza-public-api.md) - [All operations](https://skmtc.dev/alianza/apis/alianza-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/alianza/apis/alianza-public-api/revisions/7223246c352c?raw)
