cURL
curl --request POST \
--url https://app.aptlystar.ai/api/v1/aptlyteam/add \
--header 'Content-Type: */*' \
--data '
{
"username": "<string>",
"email": "jsmith@example.com",
"password": "<string>",
"activestatus": true,
"roleId": 123
}
'import requests
url = "https://app.aptlystar.ai/api/v1/aptlyteam/add"
payload = {
"username": "<string>",
"email": "jsmith@example.com",
"password": "<string>",
"activestatus": True,
"roleId": 123
}
headers = {"Content-Type": "*/*"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '*/*'},
body: JSON.stringify({
username: '<string>',
email: 'jsmith@example.com',
password: '<string>',
activestatus: true,
roleId: 123
})
};
fetch('https://app.aptlystar.ai/api/v1/aptlyteam/add', 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/aptlyteam/add",
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([
'username' => '<string>',
'email' => 'jsmith@example.com',
'password' => '<string>',
'activestatus' => true,
'roleId' => 123
]),
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/aptlyteam/add"
payload := strings.NewReader("{\n \"username\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"activestatus\": true,\n \"roleId\": 123\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/aptlyteam/add")
.header("Content-Type", "*/*")
.body("{\n \"username\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"activestatus\": true,\n \"roleId\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aptlystar.ai/api/v1/aptlyteam/add")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '*/*'
request.body = "{\n \"username\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"activestatus\": true,\n \"roleId\": 123\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.API Reference
Post apiv1aptlyteamadd
POST
/
api
/
v1
/
aptlyteam
/
add
cURL
curl --request POST \
--url https://app.aptlystar.ai/api/v1/aptlyteam/add \
--header 'Content-Type: */*' \
--data '
{
"username": "<string>",
"email": "jsmith@example.com",
"password": "<string>",
"activestatus": true,
"roleId": 123
}
'import requests
url = "https://app.aptlystar.ai/api/v1/aptlyteam/add"
payload = {
"username": "<string>",
"email": "jsmith@example.com",
"password": "<string>",
"activestatus": True,
"roleId": 123
}
headers = {"Content-Type": "*/*"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '*/*'},
body: JSON.stringify({
username: '<string>',
email: 'jsmith@example.com',
password: '<string>',
activestatus: true,
roleId: 123
})
};
fetch('https://app.aptlystar.ai/api/v1/aptlyteam/add', 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/aptlyteam/add",
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([
'username' => '<string>',
'email' => 'jsmith@example.com',
'password' => '<string>',
'activestatus' => true,
'roleId' => 123
]),
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/aptlyteam/add"
payload := strings.NewReader("{\n \"username\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"activestatus\": true,\n \"roleId\": 123\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/aptlyteam/add")
.header("Content-Type", "*/*")
.body("{\n \"username\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"activestatus\": true,\n \"roleId\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.aptlystar.ai/api/v1/aptlyteam/add")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '*/*'
request.body = "{\n \"username\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"activestatus\": true,\n \"roleId\": 123\n}"
response = http.request(request)
puts response.read_bodyThis response has no body data.⌘I

