---
title: "Create a cable"
method: POST
path: "/{org_slug}/cables"
tags: ["Cables"]
---

# Create a cable

`POST /{org_slug}/cables`

## Request

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

Create a cable

## Path parameters

- `org_slug` string, required

## Request body

- object
  - `term_side_a_id` string, required
  - `term_side_b_id` string, required
  - `cable_group_id` string
  - `color` string
  - `description` string
  - `label` string
  - `length` number
  - `length_unit` string
  - `status` string
  - `type` string

## Response `201`

Cable created

- object
  - `cable` object, required
    - `created_at` string, required
    - `id` string, required
    - `term_side_a_id` string, required
    - `term_side_b_id` string, required
    - `updated_at` string, required
    - `cable_group_id` string, nullable
    - `cable_group_name` string, nullable
    - `color` string, nullable
    - `description` string, nullable
    - `label` string, nullable
    - `length` number, nullable
    - `length_unit` string, nullable
    - `status` string, nullable
    - `term_side_a_device_name` string, nullable
    - `term_side_a_interface_name` string, nullable
    - `term_side_b_device_name` string, nullable
    - `term_side_b_interface_name` string, nullable
    - `type` string, nullable
  - `tags` object[], required
    - `id` string, required
    - `tag_id` string, required
    - `tag_name` string, required
    - `tag_color` string, nullable

## Other responses

- `400`: Validation error

---

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