---
title: "Update a subsector"
method: PUT
path: "/v1/subsectors/{id}"
tags: ["Subsector"]
---

# Update a subsector

`PUT /v1/subsectors/{id}`

Updates an existing subsector.

## Request body

- SubsectorUpdate
  - `sectorId` string
  - `name` string
  - `externalReference` ExternalReference — A structured reference to a record in an external source system.
    - `source` string — The external system, e.g. a CRM provider.
    - `id` string — The record id in the external system.

## Response `200`

Updates an existing subsector.

- object
  - `data` Subsector
    - `id` string
    - `sectorId` string
    - `name` string
    - `externalReference` ExternalReference — A structured reference to a record in an external source system.
      - `source` string — The external system, e.g. a CRM provider.
      - `id` string — The record id in the external system.
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — The request body or parameters are invalid.
- `401` — Missing or invalid API key credentials.
- `404` — The resource does not exist in your organization.

---

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