Update capacity
⚠️ This endpoint is in public preview.
Update a capacity. Omitted fields are left unchanged.
Authorizations
Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Path Parameters
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.
(cap_[0-9a-zA-Z_-]{1,21})|(sfc:capacity:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){2,2})"cap_k3R-nX9vLm7Qp2Yw5Jd8F"
Body
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
Metadata tags. Full replacement semantics: replaces all existing tags. Omit to leave tags unchanged. Set to null to clear all tags.
{ "env": "prod", "team": "infra" }Response
Capacity updated.
cap_[0-9a-zA-Z_-]{1,21}"cap_k3R-nX9vLm7Qp2Yw5Jd8F"
A resource path for a capacity resource. Format: sfc:capacity:::.
sfc:capacity:([a-zA-Z0-9._-]+:){2}[a-zA-Z0-9._-]+"sfc:capacity:<account_id>:<workspace>:<name>"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
wksp_[0-9a-zA-Z_-]{1,21}"wksp_k3R-nX9vLm7Qp2Yw5Jd8F"
1 - 255[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}"my-resource-name"
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.
market, originating, read_only "capacity"Allocation schedule of this capacity. Add to the schedule by placing buy orders into this capacity.
Unix timestamp.
1738972800
Active procurements targeting this capacity.
Active deployments targeting this capacity.
Metadata tags attached to this capacity.
{ "env": "prod", "team": "infra" }