---
title: "Assign a site to an ASN"
method: POST
path: "/{org_slug}/asns/{id}/sites"
tags: ["IPAM"]
---

# Assign a site to an ASN

`POST /{org_slug}/asns/{id}/sites`

## Request

- Base URL: `https://api.obelinf.com`
- URL: `https://api.obelinf.com/{org_slug}/asns/{id}/sites`
- Auth: HTTP bearer

Assign a site to an ASN

## Path parameters

- `org_slug` string, required
- `id` string, required

## Request body

- object
  - `site_id` string, required

## Response `200`

Site assigned

- object
  - `ok` unknown, required

## Other responses

- `400`: Validation Error
- `404`: Not found

---

[API](https://skmtc.dev/obelinf/apis/obelinf-api.md) · [All operations](https://skmtc.dev/obelinf/apis/obelinf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/obelinf/apis/obelinf-api/revisions/463fcf791828?raw)
