cURL Python JavaScript Java
bash curl --request POST \
--url ' https://api2.rhombussystems.com/api/org/updateOrg ' \
--header ' x-auth-scheme: api-token ' \
--header ' x-auth-apikey: YOUR_API_KEY ' \
--header ' Content-Type: application/json ' \
--data ' {
"org": {
"accountOwnerEmail": "<string>",
"address1": "<string>",
"address2": "<string>",
"countryCode": "<string>",
"createdAtMillis": 0,
"firmwareUpdateSettings": {
"intervalsV2": [
{
"minuteOfWeekStart": 0,
"minuteOfWeekStop": 0
}
],
"mode": "MANUAL"
},
"itemizedInvoice": true,
"mfaEnabled": true,
"name": "<string>",
"newCameraFramerateMap": {
"<key>": 0
},
"newCameraResolutionMap": {
"<key>": 0
},
"newCameraSegmentMaxBytesMap": {
"<key>": 0
},
"newCameraVideoTargetQualityMap": {
"<key>": 0
},
"notificationSettings": {
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"slackChannel": "<string>",
"slackEnabled": true,
"slackWebhookUrl": "<string>"
},
"partnerAccessAllowedUntil": 0,
"planType": "TRIAL",
"postalCode": "<string>",
"rbacSettings": {
"enabled": true
},
"samlSettings": {
"addUsersOnRoleMismatch": true,
"enabled": true,
"idpMetaDataXml": "<string>",
"justInTimeAccountProvisioningEnabled": true
},
"subscriptionEndDate": 0,
"subscriptionStatus": "TRIAL",
"subscriptionType": "STARTER",
"supportAccessAllowedUntil": 0,
"teamName": "<string>",
"type": "PARTNER",
"uapSettings": {
"enabled": true,
"text": "<string>"
},
"uuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
} ' import requests
url = " https://api2.rhombussystems.com/api/org/updateOrg "
headers = {
" x-auth-scheme ": " api-token ",
" x-auth-apikey ": " YOUR_API_KEY ",
" Content-Type ": " application/json ",
}
payload = {
" org ": {
" accountOwnerEmail ": " <string> ",
" address1 ": " <string> ",
" address2 ": " <string> ",
" countryCode ": " <string> ",
" createdAtMillis ": 0 ,
" firmwareUpdateSettings ": {
" intervalsV2 ": [
{
" minuteOfWeekStart ": 0 ,
" minuteOfWeekStop ": 0
}
],
" mode ": " MANUAL "
},
" itemizedInvoice ": True ,
" mfaEnabled ": True ,
" name ": " <string> ",
" newCameraFramerateMap ": {
" <key> ": 0
},
" newCameraResolutionMap ": {
" <key> ": 0
},
" newCameraSegmentMaxBytesMap ": {
" <key> ": 0
},
" newCameraVideoTargetQualityMap ": {
" <key> ": 0
},
" notificationSettings ": {
" orgUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" slackChannel ": " <string> ",
" slackEnabled ": True ,
" slackWebhookUrl ": " <string> "
},
" partnerAccessAllowedUntil ": 0 ,
" planType ": " TRIAL ",
" postalCode ": " <string> ",
" rbacSettings ": {
" enabled ": True
},
" samlSettings ": {
" addUsersOnRoleMismatch ": True ,
" enabled ": True ,
" idpMetaDataXml ": " <string> ",
" justInTimeAccountProvisioningEnabled ": True
},
" subscriptionEndDate ": 0 ,
" subscriptionStatus ": " TRIAL ",
" subscriptionType ": " STARTER ",
" supportAccessAllowedUntil ": 0 ,
" teamName ": " <string> ",
" type ": " PARTNER ",
" uapSettings ": {
" enabled ": True ,
" text ": " <string> "
},
" uuid ": " AAAAAAAAAAAAAAAAAAAAAA "
}
}
response = requests. post ( url , headers= headers , json= payload )
response. raise_for_status ()
print ( response . json ()) const response = await fetch (' https://api2.rhombussystems.com/api/org/updateOrg ', {
method : ' POST ',
headers : {
' x-auth-scheme ': ' api-token ',
' x-auth-apikey ': ' YOUR_API_KEY ',
' Content-Type ': ' application/json ',
},
body : JSON. stringify ({
" org ": {
" accountOwnerEmail ": " <string> ",
" address1 ": " <string> ",
" address2 ": " <string> ",
" countryCode ": " <string> ",
" createdAtMillis ": 0 ,
" firmwareUpdateSettings ": {
" intervalsV2 ": [
{
" minuteOfWeekStart ": 0 ,
" minuteOfWeekStop ": 0
}
],
" mode ": " MANUAL "
},
" itemizedInvoice ": true ,
" mfaEnabled ": true ,
" name ": " <string> ",
" newCameraFramerateMap ": {
" <key> ": 0
},
" newCameraResolutionMap ": {
" <key> ": 0
},
" newCameraSegmentMaxBytesMap ": {
" <key> ": 0
},
" newCameraVideoTargetQualityMap ": {
" <key> ": 0
},
" notificationSettings ": {
" orgUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" slackChannel ": " <string> ",
" slackEnabled ": true ,
" slackWebhookUrl ": " <string> "
},
" partnerAccessAllowedUntil ": 0 ,
" planType ": " TRIAL ",
" postalCode ": " <string> ",
" rbacSettings ": {
" enabled ": true
},
" samlSettings ": {
" addUsersOnRoleMismatch ": true ,
" enabled ": true ,
" idpMetaDataXml ": " <string> ",
" justInTimeAccountProvisioningEnabled ": true
},
" subscriptionEndDate ": 0 ,
" subscriptionStatus ": " TRIAL ",
" subscriptionType ": " STARTER ",
" supportAccessAllowedUntil ": 0 ,
" teamName ": " <string> ",
" type ": " PARTNER ",
" uapSettings ": {
" enabled ": true ,
" text ": " <string> "
},
" uuid ": " AAAAAAAAAAAAAAAAAAAAAA "
}
}),
});
if (! response. ok ) throw new Error (`${ response. status } : ${ await response. text ()}`);
console. log ( await response. json ()); import java . net . URI ;
import java . net . http . HttpClient ;
import java . net . http . HttpRequest ;
import java . net . http . HttpResponse ;
public class Example {
public static void main ( String [] args) throws Exception {
String body = """
{
"org": {
"accountOwnerEmail": "<string>",
"address1": "<string>",
"address2": "<string>",
"countryCode": "<string>",
"createdAtMillis": 0,
"firmwareUpdateSettings": {
"intervalsV2": [
{
"minuteOfWeekStart": 0,
"minuteOfWeekStop": 0
}
],
"mode": "MANUAL"
},
"itemizedInvoice": true,
"mfaEnabled": true,
"name": "<string>",
"newCameraFramerateMap": {
"<key>": 0
},
"newCameraResolutionMap": {
"<key>": 0
},
"newCameraSegmentMaxBytesMap": {
"<key>": 0
},
"newCameraVideoTargetQualityMap": {
"<key>": 0
},
"notificationSettings": {
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"slackChannel": "<string>",
"slackEnabled": true,
"slackWebhookUrl": "<string>"
},
"partnerAccessAllowedUntil": 0,
"planType": "TRIAL",
"postalCode": "<string>",
"rbacSettings": {
"enabled": true
},
"samlSettings": {
"addUsersOnRoleMismatch": true,
"enabled": true,
"idpMetaDataXml": "<string>",
"justInTimeAccountProvisioningEnabled": true
},
"subscriptionEndDate": 0,
"subscriptionStatus": "TRIAL",
"subscriptionType": "STARTER",
"supportAccessAllowedUntil": 0,
"teamName": "<string>",
"type": "PARTNER",
"uapSettings": {
"enabled": true,
"text": "<string>"
},
"uuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
}
""";
HttpRequest request = HttpRequest. newBuilder ()
. uri ( URI. create (" https://api2.rhombussystems.com/api/org/updateOrg "))
. header (" x-auth-scheme ", " api-token ")
. header (" x-auth-apikey ", " YOUR_API_KEY ")
. header (" Content-Type ", " application/json ")
. method (" POST ", HttpRequest. BodyPublishers. ofString ( body))
. build ();
HttpResponse < String > response = HttpClient. newHttpClient ()
. send ( request, HttpResponse. BodyHandlers. ofString ());
System. out. println ( response. statusCode () + " " + response. body ());
}
}