API to add chat models to organization
curl --request POST \
--url https://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType} \
--header 'Content-Type: */*' \
--data '
{
"aIModelsSelectedToAddToOrg": [
{
"id": 123,
"modelid": "<string>"
}
]
}
'import requests
url = "https://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}"
payload = { "aIModelsSelectedToAddToOrg": [
{
"id": 123,
"modelid": "<string>"
}
] }
headers = {"Content-Type": "*/*"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '*/*'},
body: JSON.stringify({aIModelsSelectedToAddToOrg: [{id: 123, modelid: '<string>'}]})
};
fetch('https://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}', 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://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'aIModelsSelectedToAddToOrg' => [
[
'id' => 123,
'modelid' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: */*"
],
]);
$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://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}"
payload := strings.NewReader("{\n \"aIModelsSelectedToAddToOrg\": [\n {\n \"id\": 123,\n \"modelid\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "*/*")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}")
.header("Content-Type", "*/*")
.body("{\n \"aIModelsSelectedToAddToOrg\": [\n {\n \"id\": 123,\n \"modelid\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '*/*'
request.body = "{\n \"aIModelsSelectedToAddToOrg\": [\n {\n \"id\": 123,\n \"modelid\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.Organization
API to add chat models to organization
POST
/
api
/
v1
/
org
/
{org_id}
/
addModelsToOrg
/
{modelType}
API to add chat models to organization
curl --request POST \
--url https://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType} \
--header 'Content-Type: */*' \
--data '
{
"aIModelsSelectedToAddToOrg": [
{
"id": 123,
"modelid": "<string>"
}
]
}
'import requests
url = "https://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}"
payload = { "aIModelsSelectedToAddToOrg": [
{
"id": 123,
"modelid": "<string>"
}
] }
headers = {"Content-Type": "*/*"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '*/*'},
body: JSON.stringify({aIModelsSelectedToAddToOrg: [{id: 123, modelid: '<string>'}]})
};
fetch('https://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}', 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://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'aIModelsSelectedToAddToOrg' => [
[
'id' => 123,
'modelid' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: */*"
],
]);
$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://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}"
payload := strings.NewReader("{\n \"aIModelsSelectedToAddToOrg\": [\n {\n \"id\": 123,\n \"modelid\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "*/*")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}")
.header("Content-Type", "*/*")
.body("{\n \"aIModelsSelectedToAddToOrg\": [\n {\n \"id\": 123,\n \"modelid\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aptlystar.ai/api/v1/org/{org_id}/addModelsToOrg/{modelType}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '*/*'
request.body = "{\n \"aIModelsSelectedToAddToOrg\": [\n {\n \"id\": 123,\n \"modelid\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.API to delete user on organizationAPI to get counts of projects, teams, users, and bots on the organization
⌘I

