Account
Reduce capacity
Keep fewer added computers from the next renewal.
PATCH
/
account
/
capacity
Reduce capacity
curl --request PATCH \
--url https://www.orgo.ai/api/account/capacity \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"added_computers": 20
}
'import requests
url = "https://www.orgo.ai/api/account/capacity"
payload = { "added_computers": 20 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({added_computers: 20})
};
fetch('https://www.orgo.ai/api/account/capacity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.orgo.ai/api/account/capacity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'added_computers' => 20
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.orgo.ai/api/account/capacity"
payload := strings.NewReader("{\n \"added_computers\": 20\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://www.orgo.ai/api/account/capacity")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"added_computers\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.orgo.ai/api/account/capacity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"added_computers\": 20\n}"
response = http.request(request)
puts response.read_body{
"scheduled": {
"added_computers": 123,
"effective_at": "2023-11-07T05:31:56Z"
},
"capacity": {
"plan": "<string>",
"computers": {
"limit": 123,
"in_use": 123
},
"ram_gb": {
"limit": 123,
"in_use": 123
},
"added": {
"computers": 123,
"ram_gb": 123,
"vcpu": 123,
"disk_gb": 123
},
"self_serve_cap": {
"computers": 123,
"ram_gb": 123,
"vcpu": 123,
"disk_gb": 123
},
"can_add": {
"small": 123,
"medium": 123,
"large": 123,
"xl": 123,
"2xl": 123
},
"max_per_request": 123,
"sizes": [
{
"size": "small",
"ram_gb": 123,
"vcpu": 123,
"disk_gb": 123,
"monthly_usd": 123
}
],
"terms": [
"monthly"
],
"windows_available": true,
"has_subscription": true,
"renews_at": "2023-11-07T05:31:56Z",
"scheduled_reduction": {
"added_computers": 123,
"effective_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}Sets how many added computers the account keeps from its next renewal. The current period is already paid for, so the computers and the bill stay until then and drop together. Sending the current number undoes a pending reduction.
Capacity a running computer stands on can’t be given back: the answer is
curl -X PATCH https://www.orgo.ai/api/account/capacity \
-H "Authorization: Bearer $ORGO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "added_computers": 20 }'
{
"scheduled": { "added_computers": 20, "effective_at": "2026-11-01T00:00:00.000Z" },
"capacity": { "...": "as Get capacity" }
}
409 with code in_use and min_added_computers. Delete computers first, then reduce.Authorizations
API key authentication. Get your key at orgo.ai/workspaces
Body
application/json
How many added computers to keep.
Required range:
x >= 0⌘I
Reduce capacity
curl --request PATCH \
--url https://www.orgo.ai/api/account/capacity \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"added_computers": 20
}
'import requests
url = "https://www.orgo.ai/api/account/capacity"
payload = { "added_computers": 20 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({added_computers: 20})
};
fetch('https://www.orgo.ai/api/account/capacity', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.orgo.ai/api/account/capacity",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'added_computers' => 20
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://www.orgo.ai/api/account/capacity"
payload := strings.NewReader("{\n \"added_computers\": 20\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://www.orgo.ai/api/account/capacity")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"added_computers\": 20\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.orgo.ai/api/account/capacity")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"added_computers\": 20\n}"
response = http.request(request)
puts response.read_body{
"scheduled": {
"added_computers": 123,
"effective_at": "2023-11-07T05:31:56Z"
},
"capacity": {
"plan": "<string>",
"computers": {
"limit": 123,
"in_use": 123
},
"ram_gb": {
"limit": 123,
"in_use": 123
},
"added": {
"computers": 123,
"ram_gb": 123,
"vcpu": 123,
"disk_gb": 123
},
"self_serve_cap": {
"computers": 123,
"ram_gb": 123,
"vcpu": 123,
"disk_gb": 123
},
"can_add": {
"small": 123,
"medium": 123,
"large": 123,
"xl": 123,
"2xl": 123
},
"max_per_request": 123,
"sizes": [
{
"size": "small",
"ram_gb": 123,
"vcpu": 123,
"disk_gb": 123,
"monthly_usd": 123
}
],
"terms": [
"monthly"
],
"windows_available": true,
"has_subscription": true,
"renews_at": "2023-11-07T05:31:56Z",
"scheduled_reduction": {
"added_computers": 123,
"effective_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}