Update organization quotas
const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({quotas: [{resourceType: '<string>', limit: 123}]})
};
fetch('https://api.example.com/v1/regions/global/organizations/quotas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/regions/global/organizations/quotas"
payload := strings.NewReader("{\n \"quotas\": [\n {\n \"resourceType\": \"<string>\",\n \"limit\": 123\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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))
}curl --request PUT \
--url https://api.example.com/v1/regions/global/organizations/quotas \
--header 'Content-Type: application/json' \
--data '
{
"quotas": [
{
"resourceType": "<string>",
"limit": 123
}
]
}
'import requests
url = "https://api.example.com/v1/regions/global/organizations/quotas"
payload = { "quotas": [
{
"resourceType": "<string>",
"limit": 123
}
] }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": [
{
"id": "<string>",
"resourceType": "<string>",
"limit": 123,
"used": 123,
"unit": "<string>",
"scope": "organization",
"enforcementPolicy": "hard"
}
]
}Organization Quotas
Update organization quotas
Update quota limits for the organization (admin only)
PUT
/
v1
/
regions
/
global
/
organizations
/
quotas
Update organization quotas
const options = {
method: 'PUT',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({quotas: [{resourceType: '<string>', limit: 123}]})
};
fetch('https://api.example.com/v1/regions/global/organizations/quotas', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/regions/global/organizations/quotas"
payload := strings.NewReader("{\n \"quotas\": [\n {\n \"resourceType\": \"<string>\",\n \"limit\": 123\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
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))
}curl --request PUT \
--url https://api.example.com/v1/regions/global/organizations/quotas \
--header 'Content-Type: application/json' \
--data '
{
"quotas": [
{
"resourceType": "<string>",
"limit": 123
}
]
}
'import requests
url = "https://api.example.com/v1/regions/global/organizations/quotas"
payload = { "quotas": [
{
"resourceType": "<string>",
"limit": 123
}
] }
headers = {"Content-Type": "application/json"}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": [
{
"id": "<string>",
"resourceType": "<string>",
"limit": 123,
"used": 123,
"unit": "<string>",
"scope": "organization",
"enforcementPolicy": "hard"
}
]
}Was this page helpful?