---
title: "Update capacity"
method: PATCH
path: "/preview/v2/capacities/{id}"
tags: ["Capacities"]
---

# Update capacity

`PATCH /preview/v2/capacities/{id}`

> ⚠️ This endpoint is in [public preview](/preview/roadmap).

Update a capacity. Omitted fields are left unchanged.

## Path parameters

- `id` string, required — A resource path like 'sfc:capacity:acme:prod:my-capacity' _or_ an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.

## Request body

- SfcApiPatchCapacityRequest
  - `name` string
  - `tags` SfcApiTags

## Response `200`

Capacity updated.

- SfcApiCapacityResponse
  - `id` string, required
  - `resource_path` string, required — A resource path for a capacity resource. Format: sfc:capacity:<account>:<workspace>:<name>.
  - `owner` string, required
  - `workspace` string, required
  - `name` string, required
  - `kind` 'market' | 'originating' | 'read_only', required — Capacity kind determines what operations are allowed on a capacity. - `Market`: User-created capacities. - `Originating`: Provider capacities for selling compute. Cannot add compute (buy orders/procurements). - `ReadOnly`: System-managed capacities used for legacy compute, bare metal contracts, and other. Cannot be modified through the API.
  - `object` 'capacity', required
  - `allocation_schedule` SfcApiAllocationSchedule, required
    - `total` SfcApiScheduleEntry[], required — Node count over time, as a list of `[start_at, end_at)` time ranges. Example: 5 nodes from t=0 to t=3600 is `[{"start_at": 0, "end_at": 3600, "node_count": 5}]`. `start_at` and `end_at` must be 60-second aligned, `node_count` must be non-negative. On non-final entries, `end_at` may be omitted (inferred from the next entry's `start_at`); gaps fill with `node_count: 0`.
      - `start_at` integer, required — Unix timestamp.
      - `end_at` integer — Unix timestamp.
      - `node_count` integer, required
    - `by_instance_sku` object, required — Allocation schedule keyed by instance SKU. Only includes current and future schedule.
  - `procurements` SfcApiProcurementSummary[] — Active procurements targeting this capacity.
    - `id` string, required
    - `name` string, required
  - `deployments` SfcApiDeploymentSummary[] — Active deployments targeting this capacity.
    - `id` string, required
    - `name` string, required
  - `created_at` integer, required — Unix timestamp.
  - `tags` SfcApiTags

## Other responses

- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Capacity not found.
- `422` — Validation failed.
- `500` — Internal server error.

---

[API](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation.md) · [All operations](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sfcompute/san-francisco-compute-documentation/revisions/93dd7661e9bb/schema)
