curl --request POST \
--url https://api.sfcompute.com/v2/capacity_transfers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from_capacity": "<string>",
"to_capacity": "<string>",
"allocation_schedule_delta": [
{
"node_count": 123,
"start_at": 1738972800,
"end_at": 1738972800
}
],
"zone": "richmond"
}
'{
"object": "capacity_transfer",
"id": "<string>",
"status": "pending",
"created_at": 1738972800,
"from_capacity": "<string>",
"to_capacity": "<string>",
"zone": "richmond",
"allocation_schedule_delta": [
{
"node_count": 123,
"start_at": 1738972800,
"end_at": 1738972800
}
],
"rejected_reason": "<string>"
}Transfer some or all of one capacity into another
curl --request POST \
--url https://api.sfcompute.com/v2/capacity_transfers \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"from_capacity": "<string>",
"to_capacity": "<string>",
"allocation_schedule_delta": [
{
"node_count": 123,
"start_at": 1738972800,
"end_at": 1738972800
}
],
"zone": "richmond"
}
'{
"object": "capacity_transfer",
"id": "<string>",
"status": "pending",
"created_at": 1738972800,
"from_capacity": "<string>",
"to_capacity": "<string>",
"zone": "richmond",
"allocation_schedule_delta": [
{
"node_count": 123,
"start_at": 1738972800,
"end_at": 1738972800
}
],
"rejected_reason": "<string>"
}Create an API token using sf tokens create or at https://sfcompute.com/account/api-keys.
Unique key for idempotent transfer creation.
Source capacity (must belong to the authenticated caller).
(cap_[0-9a-zA-Z_-]{1,21})|(sfc:capacity:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,3})"cap_k3R-nX9vLm7Qp2Yw5Jd8F"
Destination capacity (must belong to the authenticated caller).
(cap_[0-9a-zA-Z_-]{1,21})|(sfc:capacity:[a-zA-Z0-9._-]+(:[a-zA-Z0-9._-]+){1,3})"cap_k3R-nX9vLm7Qp2Yw5Jd8F"
The transfer's allocation schedule as constant-quantity rectangles. If the final entry does not have end_at: null, a zero-quantity unbounded tail is appended automatically.
Show child attributes
Zone the transfer applies to.
"richmond"
Capacity transfer accepted.
"capacity_transfer"cxfr_[0-9a-zA-Z_-]{1,21}"cxfr_k3R-nX9vLm7Qp2Yw5Jd8F"
pending, executed, rejected Unix timestamp.
1738972800
cap_[0-9a-zA-Z_-]{1,21}"cap_k3R-nX9vLm7Qp2Yw5Jd8F"
cap_[0-9a-zA-Z_-]{1,21}"cap_k3R-nX9vLm7Qp2Yw5Jd8F"
"richmond"
The transfer's allocation schedule, expanded into constant-quantity rectangles. The final rectangle has end_at: null (the unbounded tail); gaps are represented as explicit zero-quantity rectangles.
Show child attributes
Reason a capacity transfer was rejected.