Update Team Wallet Settings
curl --request PATCH \
--url https://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"autoTopUpActive": true,
"monthlyInvoices": true,
"autoTopUpMaxValue": 4611686018427438000
}
'import requests
url = "https://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings"
payload = {
"autoTopUpActive": True,
"monthlyInvoices": True,
"autoTopUpMaxValue": 4611686018427438000
}
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({
autoTopUpActive: true,
monthlyInvoices: true,
autoTopUpMaxValue: 4611686018427438000
})
};
fetch('https://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings', 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://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings",
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([
'autoTopUpActive' => true,
'monthlyInvoices' => true,
'autoTopUpMaxValue' => 4611686018427438000
]),
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://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings"
payload := strings.NewReader("{\n \"autoTopUpActive\": true,\n \"monthlyInvoices\": true,\n \"autoTopUpMaxValue\": 4611686018427438000\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://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"autoTopUpActive\": true,\n \"monthlyInvoices\": true,\n \"autoTopUpMaxValue\": 4611686018427438000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings")
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 \"autoTopUpActive\": true,\n \"monthlyInvoices\": true,\n \"autoTopUpMaxValue\": 4611686018427438000\n}"
response = http.request(request)
puts response.read_body{
"data": {
"walletId": "<string>",
"monthlyInvoices": true,
"autoTopUpActive": true,
"autoTopUpValue": 123,
"autoTopUpMaxValue": 123,
"clamped": false,
"notified": false
},
"status": "<string>"
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}admin-teams
Update Team Wallet Settings
Update auto top-up, its cap, and monthly invoicing.
Lowering the cap below the configured amount drags that amount down with it and notifies the owner, since what gets billed to their card changes. Turning auto top-up off also releases its in-progress lock.
PATCH
/
api
/
admin
/
teams
/
{team_id}
/
wallet-settings
Update Team Wallet Settings
curl --request PATCH \
--url https://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"autoTopUpActive": true,
"monthlyInvoices": true,
"autoTopUpMaxValue": 4611686018427438000
}
'import requests
url = "https://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings"
payload = {
"autoTopUpActive": True,
"monthlyInvoices": True,
"autoTopUpMaxValue": 4611686018427438000
}
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({
autoTopUpActive: true,
monthlyInvoices: true,
autoTopUpMaxValue: 4611686018427438000
})
};
fetch('https://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings', 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://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings",
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([
'autoTopUpActive' => true,
'monthlyInvoices' => true,
'autoTopUpMaxValue' => 4611686018427438000
]),
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://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings"
payload := strings.NewReader("{\n \"autoTopUpActive\": true,\n \"monthlyInvoices\": true,\n \"autoTopUpMaxValue\": 4611686018427438000\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://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"autoTopUpActive\": true,\n \"monthlyInvoices\": true,\n \"autoTopUpMaxValue\": 4611686018427438000\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.primeintellect.ai/api/admin/teams/{team_id}/wallet-settings")
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 \"autoTopUpActive\": true,\n \"monthlyInvoices\": true,\n \"autoTopUpMaxValue\": 4611686018427438000\n}"
response = http.request(request)
puts response.read_body{
"data": {
"walletId": "<string>",
"monthlyInvoices": true,
"autoTopUpActive": true,
"autoTopUpValue": 123,
"autoTopUpMaxValue": 123,
"clamped": false,
"notified": false
},
"status": "<string>"
}{
"errors": [
{
"param": "<string>",
"details": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Admin edit of the wallet settings that are not usage limits.
autoTopUpMaxValue distinguishes absent from explicit null: omitting it
leaves the cap alone, passing null resets it to the platform default. The
other two are tri-state for the same reason.
Was this page helpful?