---
title: "Create an ASN"
method: POST
path: "/{org_slug}/asns"
tags: ["IPAM"]
---

# Create an ASN

`POST /{org_slug}/asns`

## Request

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

Create an ASN

## Path parameters

- `org_slug` string, required

## Request body

- object
  - `asn` number, required
  - `name` string, required
  - `description` string
  - `provider_ids` string[]
  - `rir_id` string
  - `site_ids` string[]
  - `status` string

## Response `201`

Created

- object
  - `asn` object, required
    - `asdot` string, required
    - `asn` number, required
    - `class` string, required
    - `created_at` string, required
    - `id` string, required
    - `name` string, required
    - `providers` object[], required
      - `id` string, required
      - `name` string, required
    - `sites` object[], required
      - `id` string, required
      - `name` string, required
    - `status` string, required
    - `updated_at` string, required
    - `description` string, nullable
    - `rir_id` string, nullable
    - `rir_name` string, nullable
  - `tags` object[], required
    - `id` string, required
    - `tag_id` string, required
    - `tag_name` string, required
    - `tag_color` string, nullable

## Other responses

- `400`: Invalid ASN
- `404`: Referenced object not found
- `409`: Conflict

---

[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)
