---
title: "Update a cable"
method: PATCH
path: "/{org_slug}/cables/{id}"
tags: ["Cables"]
---

# Update a cable

`PATCH /{org_slug}/cables/{id}`

## Request

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

Update a cable

## Path parameters

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

## Request body

- object
  - `cable_group_id` string, nullable
  - `color` string, nullable
  - `description` string, nullable
  - `label` string, nullable
  - `length` number, nullable
  - `length_unit` string, nullable
  - `status` string, nullable
  - `type` string, nullable

## Response `200`

Cable updated

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