---
title: "Route assignment to IP"
method: PUT
path: "/ip/{ipAssignmentId}"
tags: ["IPAssignment"]
---

# Route assignment to IP

`PUT /ip/{ipAssignmentId}`

## Headers

- `X-Fields` string, mask

## Request body

- IpAssignmentPut
  - `nextHopIp` string — Route traffic from the IPs in the assignment to this IPv4 or IPv6 IP.

## Response `202`

Accepted

- NetworkTaskDump
  - `clientId` integer — Unique ID of the client triggering the task.
  - `deviceId` integer — Unique ID of the target device.
  - `metaData` string — Key value arguments used to trigger the task.
  - `result` string — Success|Pending|Failed. Null value also means Pending.
  - `taskCreated` object — Timestamp of task creation date.
  - `taskId` string — Unique ID of the network task.
  - `taskUpdated` object — Timestamp of most recent activity taken on the network task. This will update multiple times for multi-step tasks.

## Other responses

- `400` — Invalid action
- `401` — Access to this IP Assignment is not allowed
- `403` — You have not been granted permission to complete this action. Please contact your account manager to grant the proper permission.
- `404` — IP assignment not found
- `429` — Request was Rate Limited

---

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