API Reference
Change the AI guest photo limit
Set maxImagesPerReply using expectedUpdatedAt from a fresh get_ai_asset_sharing_settings read (null when absent). A conflicting update returns 409; reload and reconcile. This changes the existing per-reply guest image limit without activating assets/folders, creating knowledge or sending messages. Required permission: ai_settings:write. Connected business only; no tenant override.
PUT
/
settings
/
ai
/
asset-sharing
Change the AI guest photo limit
curl --request PUT \
--url https://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"maxImagesPerReply": 8,
"expectedUpdatedAt": "<string>"
}
'import requests
url = "https://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing"
payload = {
"maxImagesPerReply": 8,
"expectedUpdatedAt": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({maxImagesPerReply: 8, expectedUpdatedAt: '<string>'})
};
fetch('https://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing', 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://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'maxImagesPerReply' => 8,
'expectedUpdatedAt' => '<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://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing"
payload := strings.NewReader("{\n \"maxImagesPerReply\": 8,\n \"expectedUpdatedAt\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"maxImagesPerReply\": 8,\n \"expectedUpdatedAt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"maxImagesPerReply\": 8,\n \"expectedUpdatedAt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"maxImagesPerReply": 8,
"updatedAt": "<string>"
}Autorizaciones
Server-side tenant-scoped credential created from Build > API Keys.
Cuerpo
application/json
Rango requerido:
1 <= x <= 15Copy updatedAt from the immediately preceding settings read; null only when no updatedAt was returned. A stale version returns SETTINGS_CONFLICT (409); reload and reconcile.
Maximum string length:
64⌘I
Change the AI guest photo limit
curl --request PUT \
--url https://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"maxImagesPerReply": 8,
"expectedUpdatedAt": "<string>"
}
'import requests
url = "https://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing"
payload = {
"maxImagesPerReply": 8,
"expectedUpdatedAt": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({maxImagesPerReply: 8, expectedUpdatedAt: '<string>'})
};
fetch('https://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing', 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://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'maxImagesPerReply' => 8,
'expectedUpdatedAt' => '<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://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing"
payload := strings.NewReader("{\n \"maxImagesPerReply\": 8,\n \"expectedUpdatedAt\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"maxImagesPerReply\": 8,\n \"expectedUpdatedAt\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://platform-api.visitoai.com/m2m/v1/settings/ai/asset-sharing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"maxImagesPerReply\": 8,\n \"expectedUpdatedAt\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"maxImagesPerReply": 8,
"updatedAt": "<string>"
}