Capacities
Create capacity
⚠️ This endpoint is in public preview.
Create a capacity to hold compute.
post/preview/v2/capacities
Request body
Example request
{
"name": "my-resource-name",
"workspace": "wksp_k3R-nX9vLm7Qp2Yw5Jd8F",
"tags": {
"env": "prod",
"team": "infra"
}
}Response
Capacity created.
Example response
{
"id": "cap_k3R-nX9vLm7Qp2Yw5Jd8F",
"resource_path": "sfc:capacity:<account_id>:<workspace>:<name>",
"owner": "my-resource-name",
"workspace": "my-resource-name",
"name": "my-resource-name",
"object": "capacity",
"allocation_schedule": {
"total": [
{
"start_at": 1738972800,
"end_at": 1738972800
}
]
},
"procurements": [
{
"id": "proc_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
}
],
"deployments": [
{
"id": "depl_k3R-nX9vLm7Qp2Yw5Jd8F",
"name": "my-resource-name"
}
],
"created_at": 1738972800,
"tags": {
"env": "prod",
"team": "infra"
}
}