Update a team
curl --request PATCH \
--url https://api.abacuslabs.co/teams/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corporation",
"email": "team@acme.com",
"logoUrl": "https://example.supabase.co/storage/v1/object/public/avatars/logo.png",
"baseCurrency": "USD",
"countryCode": "US",
"fiscalYearStartMonth": 4,
"underwritingEnabled": true,
"settings": {
"show_pending_transactions": true,
"mark_new_as_needs_review": true,
"mark_uncategorized_as_needs_review": true,
"ai_insights_enabled": true,
"weekly_portfolio_recap": true,
"nsf_alert_threshold": 5,
"late_payment_alert_days": 15,
"mca_defaults": {
"nsf_fee": 250,
"business_days_per_month": 20,
"default_contract_term": 30,
"funding_amount_presets": [
5000500
],
"factor_rate_presets": [
1.5
]
}
},
"branding": {
"displayName": "<string>",
"primaryColor": "<string>",
"secondaryColor": "<string>",
"emailFromName": "<string>",
"pdfFooterText": "<string>",
"emailReplyTo": "jsmith@example.com",
"collectionsTeam": [
{
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"documentSigners": {
"useGeneratingUser": true
},
"companyAddress": {
"street": "<string>",
"suite": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"companyPhone": "<string>",
"companyWebsite": "<string>",
"reviewUrl": "<string>",
"wiringInfo": {
"bankName": "<string>",
"routingNumber": "<string>",
"accountNumber": "<string>",
"bankAddress": "<string>"
}
}
}
'import requests
url = "https://api.abacuslabs.co/teams/{id}"
payload = {
"name": "Acme Corporation",
"email": "team@acme.com",
"logoUrl": "https://example.supabase.co/storage/v1/object/public/avatars/logo.png",
"baseCurrency": "USD",
"countryCode": "US",
"fiscalYearStartMonth": 4,
"underwritingEnabled": True,
"settings": {
"show_pending_transactions": True,
"mark_new_as_needs_review": True,
"mark_uncategorized_as_needs_review": True,
"ai_insights_enabled": True,
"weekly_portfolio_recap": True,
"nsf_alert_threshold": 5,
"late_payment_alert_days": 15,
"mca_defaults": {
"nsf_fee": 250,
"business_days_per_month": 20,
"default_contract_term": 30,
"funding_amount_presets": [5000500],
"factor_rate_presets": [1.5]
}
},
"branding": {
"displayName": "<string>",
"primaryColor": "<string>",
"secondaryColor": "<string>",
"emailFromName": "<string>",
"pdfFooterText": "<string>",
"emailReplyTo": "jsmith@example.com",
"collectionsTeam": [
{
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"documentSigners": { "useGeneratingUser": True },
"companyAddress": {
"street": "<string>",
"suite": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"companyPhone": "<string>",
"companyWebsite": "<string>",
"reviewUrl": "<string>",
"wiringInfo": {
"bankName": "<string>",
"routingNumber": "<string>",
"accountNumber": "<string>",
"bankAddress": "<string>"
}
}
}
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({
name: 'Acme Corporation',
email: 'team@acme.com',
logoUrl: 'https://example.supabase.co/storage/v1/object/public/avatars/logo.png',
baseCurrency: 'USD',
countryCode: 'US',
fiscalYearStartMonth: 4,
underwritingEnabled: true,
settings: {
show_pending_transactions: true,
mark_new_as_needs_review: true,
mark_uncategorized_as_needs_review: true,
ai_insights_enabled: true,
weekly_portfolio_recap: true,
nsf_alert_threshold: 5,
late_payment_alert_days: 15,
mca_defaults: {
nsf_fee: 250,
business_days_per_month: 20,
default_contract_term: 30,
funding_amount_presets: [5000500],
factor_rate_presets: [1.5]
}
},
branding: {
displayName: '<string>',
primaryColor: '<string>',
secondaryColor: '<string>',
emailFromName: '<string>',
pdfFooterText: '<string>',
emailReplyTo: 'jsmith@example.com',
collectionsTeam: [{userId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', title: '<string>'}],
documentSigners: {useGeneratingUser: true},
companyAddress: {
street: '<string>',
suite: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>'
},
companyPhone: '<string>',
companyWebsite: '<string>',
reviewUrl: '<string>',
wiringInfo: {
bankName: '<string>',
routingNumber: '<string>',
accountNumber: '<string>',
bankAddress: '<string>'
}
}
})
};
fetch('https://api.abacuslabs.co/teams/{id}', 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.abacuslabs.co/teams/{id}",
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([
'name' => 'Acme Corporation',
'email' => 'team@acme.com',
'logoUrl' => 'https://example.supabase.co/storage/v1/object/public/avatars/logo.png',
'baseCurrency' => 'USD',
'countryCode' => 'US',
'fiscalYearStartMonth' => 4,
'underwritingEnabled' => true,
'settings' => [
'show_pending_transactions' => true,
'mark_new_as_needs_review' => true,
'mark_uncategorized_as_needs_review' => true,
'ai_insights_enabled' => true,
'weekly_portfolio_recap' => true,
'nsf_alert_threshold' => 5,
'late_payment_alert_days' => 15,
'mca_defaults' => [
'nsf_fee' => 250,
'business_days_per_month' => 20,
'default_contract_term' => 30,
'funding_amount_presets' => [
5000500
],
'factor_rate_presets' => [
1.5
]
]
],
'branding' => [
'displayName' => '<string>',
'primaryColor' => '<string>',
'secondaryColor' => '<string>',
'emailFromName' => '<string>',
'pdfFooterText' => '<string>',
'emailReplyTo' => 'jsmith@example.com',
'collectionsTeam' => [
[
'userId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>'
]
],
'documentSigners' => [
'useGeneratingUser' => true
],
'companyAddress' => [
'street' => '<string>',
'suite' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zip' => '<string>'
],
'companyPhone' => '<string>',
'companyWebsite' => '<string>',
'reviewUrl' => '<string>',
'wiringInfo' => [
'bankName' => '<string>',
'routingNumber' => '<string>',
'accountNumber' => '<string>',
'bankAddress' => '<string>'
]
]
]),
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.abacuslabs.co/teams/{id}"
payload := strings.NewReader("{\n \"name\": \"Acme Corporation\",\n \"email\": \"team@acme.com\",\n \"logoUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/logo.png\",\n \"baseCurrency\": \"USD\",\n \"countryCode\": \"US\",\n \"fiscalYearStartMonth\": 4,\n \"underwritingEnabled\": true,\n \"settings\": {\n \"show_pending_transactions\": true,\n \"mark_new_as_needs_review\": true,\n \"mark_uncategorized_as_needs_review\": true,\n \"ai_insights_enabled\": true,\n \"weekly_portfolio_recap\": true,\n \"nsf_alert_threshold\": 5,\n \"late_payment_alert_days\": 15,\n \"mca_defaults\": {\n \"nsf_fee\": 250,\n \"business_days_per_month\": 20,\n \"default_contract_term\": 30,\n \"funding_amount_presets\": [\n 5000500\n ],\n \"factor_rate_presets\": [\n 1.5\n ]\n }\n },\n \"branding\": {\n \"displayName\": \"<string>\",\n \"primaryColor\": \"<string>\",\n \"secondaryColor\": \"<string>\",\n \"emailFromName\": \"<string>\",\n \"pdfFooterText\": \"<string>\",\n \"emailReplyTo\": \"jsmith@example.com\",\n \"collectionsTeam\": [\n {\n \"userId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\"\n }\n ],\n \"documentSigners\": {\n \"useGeneratingUser\": true\n },\n \"companyAddress\": {\n \"street\": \"<string>\",\n \"suite\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"companyPhone\": \"<string>\",\n \"companyWebsite\": \"<string>\",\n \"reviewUrl\": \"<string>\",\n \"wiringInfo\": {\n \"bankName\": \"<string>\",\n \"routingNumber\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"bankAddress\": \"<string>\"\n }\n }\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.abacuslabs.co/teams/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Corporation\",\n \"email\": \"team@acme.com\",\n \"logoUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/logo.png\",\n \"baseCurrency\": \"USD\",\n \"countryCode\": \"US\",\n \"fiscalYearStartMonth\": 4,\n \"underwritingEnabled\": true,\n \"settings\": {\n \"show_pending_transactions\": true,\n \"mark_new_as_needs_review\": true,\n \"mark_uncategorized_as_needs_review\": true,\n \"ai_insights_enabled\": true,\n \"weekly_portfolio_recap\": true,\n \"nsf_alert_threshold\": 5,\n \"late_payment_alert_days\": 15,\n \"mca_defaults\": {\n \"nsf_fee\": 250,\n \"business_days_per_month\": 20,\n \"default_contract_term\": 30,\n \"funding_amount_presets\": [\n 5000500\n ],\n \"factor_rate_presets\": [\n 1.5\n ]\n }\n },\n \"branding\": {\n \"displayName\": \"<string>\",\n \"primaryColor\": \"<string>\",\n \"secondaryColor\": \"<string>\",\n \"emailFromName\": \"<string>\",\n \"pdfFooterText\": \"<string>\",\n \"emailReplyTo\": \"jsmith@example.com\",\n \"collectionsTeam\": [\n {\n \"userId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\"\n }\n ],\n \"documentSigners\": {\n \"useGeneratingUser\": true\n },\n \"companyAddress\": {\n \"street\": \"<string>\",\n \"suite\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"companyPhone\": \"<string>\",\n \"companyWebsite\": \"<string>\",\n \"reviewUrl\": \"<string>\",\n \"wiringInfo\": {\n \"bankName\": \"<string>\",\n \"routingNumber\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"bankAddress\": \"<string>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/teams/{id}")
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 \"name\": \"Acme Corporation\",\n \"email\": \"team@acme.com\",\n \"logoUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/logo.png\",\n \"baseCurrency\": \"USD\",\n \"countryCode\": \"US\",\n \"fiscalYearStartMonth\": 4,\n \"underwritingEnabled\": true,\n \"settings\": {\n \"show_pending_transactions\": true,\n \"mark_new_as_needs_review\": true,\n \"mark_uncategorized_as_needs_review\": true,\n \"ai_insights_enabled\": true,\n \"weekly_portfolio_recap\": true,\n \"nsf_alert_threshold\": 5,\n \"late_payment_alert_days\": 15,\n \"mca_defaults\": {\n \"nsf_fee\": 250,\n \"business_days_per_month\": 20,\n \"default_contract_term\": 30,\n \"funding_amount_presets\": [\n 5000500\n ],\n \"factor_rate_presets\": [\n 1.5\n ]\n }\n },\n \"branding\": {\n \"displayName\": \"<string>\",\n \"primaryColor\": \"<string>\",\n \"secondaryColor\": \"<string>\",\n \"emailFromName\": \"<string>\",\n \"pdfFooterText\": \"<string>\",\n \"emailReplyTo\": \"jsmith@example.com\",\n \"collectionsTeam\": [\n {\n \"userId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\"\n }\n ],\n \"documentSigners\": {\n \"useGeneratingUser\": true\n },\n \"companyAddress\": {\n \"street\": \"<string>\",\n \"suite\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"companyPhone\": \"<string>\",\n \"companyWebsite\": \"<string>\",\n \"reviewUrl\": \"<string>\",\n \"wiringInfo\": {\n \"bankName\": \"<string>\",\n \"routingNumber\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"bankAddress\": \"<string>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Acme Corporation",
"logoUrl": "https://example.supabase.co/storage/v1/object/public/avatars/logo.png",
"plan": "pro"
}Teams
Update a team
Update a team for the authenticated workspace. If there’s no change, returns it as it is.
PATCH
/
teams
/
{id}
Update a team
curl --request PATCH \
--url https://api.abacuslabs.co/teams/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "Acme Corporation",
"email": "team@acme.com",
"logoUrl": "https://example.supabase.co/storage/v1/object/public/avatars/logo.png",
"baseCurrency": "USD",
"countryCode": "US",
"fiscalYearStartMonth": 4,
"underwritingEnabled": true,
"settings": {
"show_pending_transactions": true,
"mark_new_as_needs_review": true,
"mark_uncategorized_as_needs_review": true,
"ai_insights_enabled": true,
"weekly_portfolio_recap": true,
"nsf_alert_threshold": 5,
"late_payment_alert_days": 15,
"mca_defaults": {
"nsf_fee": 250,
"business_days_per_month": 20,
"default_contract_term": 30,
"funding_amount_presets": [
5000500
],
"factor_rate_presets": [
1.5
]
}
},
"branding": {
"displayName": "<string>",
"primaryColor": "<string>",
"secondaryColor": "<string>",
"emailFromName": "<string>",
"pdfFooterText": "<string>",
"emailReplyTo": "jsmith@example.com",
"collectionsTeam": [
{
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"documentSigners": {
"useGeneratingUser": true
},
"companyAddress": {
"street": "<string>",
"suite": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"companyPhone": "<string>",
"companyWebsite": "<string>",
"reviewUrl": "<string>",
"wiringInfo": {
"bankName": "<string>",
"routingNumber": "<string>",
"accountNumber": "<string>",
"bankAddress": "<string>"
}
}
}
'import requests
url = "https://api.abacuslabs.co/teams/{id}"
payload = {
"name": "Acme Corporation",
"email": "team@acme.com",
"logoUrl": "https://example.supabase.co/storage/v1/object/public/avatars/logo.png",
"baseCurrency": "USD",
"countryCode": "US",
"fiscalYearStartMonth": 4,
"underwritingEnabled": True,
"settings": {
"show_pending_transactions": True,
"mark_new_as_needs_review": True,
"mark_uncategorized_as_needs_review": True,
"ai_insights_enabled": True,
"weekly_portfolio_recap": True,
"nsf_alert_threshold": 5,
"late_payment_alert_days": 15,
"mca_defaults": {
"nsf_fee": 250,
"business_days_per_month": 20,
"default_contract_term": 30,
"funding_amount_presets": [5000500],
"factor_rate_presets": [1.5]
}
},
"branding": {
"displayName": "<string>",
"primaryColor": "<string>",
"secondaryColor": "<string>",
"emailFromName": "<string>",
"pdfFooterText": "<string>",
"emailReplyTo": "jsmith@example.com",
"collectionsTeam": [
{
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"title": "<string>"
}
],
"documentSigners": { "useGeneratingUser": True },
"companyAddress": {
"street": "<string>",
"suite": "<string>",
"city": "<string>",
"state": "<string>",
"zip": "<string>"
},
"companyPhone": "<string>",
"companyWebsite": "<string>",
"reviewUrl": "<string>",
"wiringInfo": {
"bankName": "<string>",
"routingNumber": "<string>",
"accountNumber": "<string>",
"bankAddress": "<string>"
}
}
}
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({
name: 'Acme Corporation',
email: 'team@acme.com',
logoUrl: 'https://example.supabase.co/storage/v1/object/public/avatars/logo.png',
baseCurrency: 'USD',
countryCode: 'US',
fiscalYearStartMonth: 4,
underwritingEnabled: true,
settings: {
show_pending_transactions: true,
mark_new_as_needs_review: true,
mark_uncategorized_as_needs_review: true,
ai_insights_enabled: true,
weekly_portfolio_recap: true,
nsf_alert_threshold: 5,
late_payment_alert_days: 15,
mca_defaults: {
nsf_fee: 250,
business_days_per_month: 20,
default_contract_term: 30,
funding_amount_presets: [5000500],
factor_rate_presets: [1.5]
}
},
branding: {
displayName: '<string>',
primaryColor: '<string>',
secondaryColor: '<string>',
emailFromName: '<string>',
pdfFooterText: '<string>',
emailReplyTo: 'jsmith@example.com',
collectionsTeam: [{userId: '3c90c3cc-0d44-4b50-8888-8dd25736052a', title: '<string>'}],
documentSigners: {useGeneratingUser: true},
companyAddress: {
street: '<string>',
suite: '<string>',
city: '<string>',
state: '<string>',
zip: '<string>'
},
companyPhone: '<string>',
companyWebsite: '<string>',
reviewUrl: '<string>',
wiringInfo: {
bankName: '<string>',
routingNumber: '<string>',
accountNumber: '<string>',
bankAddress: '<string>'
}
}
})
};
fetch('https://api.abacuslabs.co/teams/{id}', 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.abacuslabs.co/teams/{id}",
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([
'name' => 'Acme Corporation',
'email' => 'team@acme.com',
'logoUrl' => 'https://example.supabase.co/storage/v1/object/public/avatars/logo.png',
'baseCurrency' => 'USD',
'countryCode' => 'US',
'fiscalYearStartMonth' => 4,
'underwritingEnabled' => true,
'settings' => [
'show_pending_transactions' => true,
'mark_new_as_needs_review' => true,
'mark_uncategorized_as_needs_review' => true,
'ai_insights_enabled' => true,
'weekly_portfolio_recap' => true,
'nsf_alert_threshold' => 5,
'late_payment_alert_days' => 15,
'mca_defaults' => [
'nsf_fee' => 250,
'business_days_per_month' => 20,
'default_contract_term' => 30,
'funding_amount_presets' => [
5000500
],
'factor_rate_presets' => [
1.5
]
]
],
'branding' => [
'displayName' => '<string>',
'primaryColor' => '<string>',
'secondaryColor' => '<string>',
'emailFromName' => '<string>',
'pdfFooterText' => '<string>',
'emailReplyTo' => 'jsmith@example.com',
'collectionsTeam' => [
[
'userId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'title' => '<string>'
]
],
'documentSigners' => [
'useGeneratingUser' => true
],
'companyAddress' => [
'street' => '<string>',
'suite' => '<string>',
'city' => '<string>',
'state' => '<string>',
'zip' => '<string>'
],
'companyPhone' => '<string>',
'companyWebsite' => '<string>',
'reviewUrl' => '<string>',
'wiringInfo' => [
'bankName' => '<string>',
'routingNumber' => '<string>',
'accountNumber' => '<string>',
'bankAddress' => '<string>'
]
]
]),
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.abacuslabs.co/teams/{id}"
payload := strings.NewReader("{\n \"name\": \"Acme Corporation\",\n \"email\": \"team@acme.com\",\n \"logoUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/logo.png\",\n \"baseCurrency\": \"USD\",\n \"countryCode\": \"US\",\n \"fiscalYearStartMonth\": 4,\n \"underwritingEnabled\": true,\n \"settings\": {\n \"show_pending_transactions\": true,\n \"mark_new_as_needs_review\": true,\n \"mark_uncategorized_as_needs_review\": true,\n \"ai_insights_enabled\": true,\n \"weekly_portfolio_recap\": true,\n \"nsf_alert_threshold\": 5,\n \"late_payment_alert_days\": 15,\n \"mca_defaults\": {\n \"nsf_fee\": 250,\n \"business_days_per_month\": 20,\n \"default_contract_term\": 30,\n \"funding_amount_presets\": [\n 5000500\n ],\n \"factor_rate_presets\": [\n 1.5\n ]\n }\n },\n \"branding\": {\n \"displayName\": \"<string>\",\n \"primaryColor\": \"<string>\",\n \"secondaryColor\": \"<string>\",\n \"emailFromName\": \"<string>\",\n \"pdfFooterText\": \"<string>\",\n \"emailReplyTo\": \"jsmith@example.com\",\n \"collectionsTeam\": [\n {\n \"userId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\"\n }\n ],\n \"documentSigners\": {\n \"useGeneratingUser\": true\n },\n \"companyAddress\": {\n \"street\": \"<string>\",\n \"suite\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"companyPhone\": \"<string>\",\n \"companyWebsite\": \"<string>\",\n \"reviewUrl\": \"<string>\",\n \"wiringInfo\": {\n \"bankName\": \"<string>\",\n \"routingNumber\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"bankAddress\": \"<string>\"\n }\n }\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.abacuslabs.co/teams/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Acme Corporation\",\n \"email\": \"team@acme.com\",\n \"logoUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/logo.png\",\n \"baseCurrency\": \"USD\",\n \"countryCode\": \"US\",\n \"fiscalYearStartMonth\": 4,\n \"underwritingEnabled\": true,\n \"settings\": {\n \"show_pending_transactions\": true,\n \"mark_new_as_needs_review\": true,\n \"mark_uncategorized_as_needs_review\": true,\n \"ai_insights_enabled\": true,\n \"weekly_portfolio_recap\": true,\n \"nsf_alert_threshold\": 5,\n \"late_payment_alert_days\": 15,\n \"mca_defaults\": {\n \"nsf_fee\": 250,\n \"business_days_per_month\": 20,\n \"default_contract_term\": 30,\n \"funding_amount_presets\": [\n 5000500\n ],\n \"factor_rate_presets\": [\n 1.5\n ]\n }\n },\n \"branding\": {\n \"displayName\": \"<string>\",\n \"primaryColor\": \"<string>\",\n \"secondaryColor\": \"<string>\",\n \"emailFromName\": \"<string>\",\n \"pdfFooterText\": \"<string>\",\n \"emailReplyTo\": \"jsmith@example.com\",\n \"collectionsTeam\": [\n {\n \"userId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\"\n }\n ],\n \"documentSigners\": {\n \"useGeneratingUser\": true\n },\n \"companyAddress\": {\n \"street\": \"<string>\",\n \"suite\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"companyPhone\": \"<string>\",\n \"companyWebsite\": \"<string>\",\n \"reviewUrl\": \"<string>\",\n \"wiringInfo\": {\n \"bankName\": \"<string>\",\n \"routingNumber\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"bankAddress\": \"<string>\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abacuslabs.co/teams/{id}")
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 \"name\": \"Acme Corporation\",\n \"email\": \"team@acme.com\",\n \"logoUrl\": \"https://example.supabase.co/storage/v1/object/public/avatars/logo.png\",\n \"baseCurrency\": \"USD\",\n \"countryCode\": \"US\",\n \"fiscalYearStartMonth\": 4,\n \"underwritingEnabled\": true,\n \"settings\": {\n \"show_pending_transactions\": true,\n \"mark_new_as_needs_review\": true,\n \"mark_uncategorized_as_needs_review\": true,\n \"ai_insights_enabled\": true,\n \"weekly_portfolio_recap\": true,\n \"nsf_alert_threshold\": 5,\n \"late_payment_alert_days\": 15,\n \"mca_defaults\": {\n \"nsf_fee\": 250,\n \"business_days_per_month\": 20,\n \"default_contract_term\": 30,\n \"funding_amount_presets\": [\n 5000500\n ],\n \"factor_rate_presets\": [\n 1.5\n ]\n }\n },\n \"branding\": {\n \"displayName\": \"<string>\",\n \"primaryColor\": \"<string>\",\n \"secondaryColor\": \"<string>\",\n \"emailFromName\": \"<string>\",\n \"pdfFooterText\": \"<string>\",\n \"emailReplyTo\": \"jsmith@example.com\",\n \"collectionsTeam\": [\n {\n \"userId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"title\": \"<string>\"\n }\n ],\n \"documentSigners\": {\n \"useGeneratingUser\": true\n },\n \"companyAddress\": {\n \"street\": \"<string>\",\n \"suite\": \"<string>\",\n \"city\": \"<string>\",\n \"state\": \"<string>\",\n \"zip\": \"<string>\"\n },\n \"companyPhone\": \"<string>\",\n \"companyWebsite\": \"<string>\",\n \"reviewUrl\": \"<string>\",\n \"wiringInfo\": {\n \"bankName\": \"<string>\",\n \"routingNumber\": \"<string>\",\n \"accountNumber\": \"<string>\",\n \"bankAddress\": \"<string>\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "Acme Corporation",
"logoUrl": "https://example.supabase.co/storage/v1/object/public/avatars/logo.png",
"plan": "pro"
}Path Parameters
Body
application/json
Response
200 - application/json
Team updated