Rinomina una chiave IA
curl --request PATCH \
--url https://api.erlcrussia.com/v3/ai/keys/{id} \
--header 'Content-Type: application/json' \
--header 'erlcrussia-api-ai-key: <api-key>' \
--data '
{
"name": "Бот поддержки"
}
'import requests
url = "https://api.erlcrussia.com/v3/ai/keys/{id}"
payload = { "name": "Бот поддержки" }
headers = {
"erlcrussia-api-ai-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'erlcrussia-api-ai-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Бот поддержки'})
};
fetch('https://api.erlcrussia.com/v3/ai/keys/{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.erlcrussia.com/v3/ai/keys/{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' => 'Бот поддержки'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"erlcrussia-api-ai-key: <api-key>"
],
]);
$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.erlcrussia.com/v3/ai/keys/{id}"
payload := strings.NewReader("{\n \"name\": \"Бот поддержки\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("erlcrussia-api-ai-key", "<api-key>")
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.erlcrussia.com/v3/ai/keys/{id}")
.header("erlcrussia-api-ai-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Бот поддержки\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erlcrussia.com/v3/ai/keys/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["erlcrussia-api-ai-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Бот поддержки\"\n}"
response = http.request(request)
puts response.read_body{
"id": "21",
"token": "sk-chat-3...0a1c",
"name": "Бот поддержки",
"created_at": "2026-10-21T12:00:00Z",
"is_active": true
}AI Studio
Rinomina una chiave IA
Rinomina la tua chiave IA tramite ID o valore.
PATCH
/
ai
/
keys
/
{id}
Rinomina una chiave IA
curl --request PATCH \
--url https://api.erlcrussia.com/v3/ai/keys/{id} \
--header 'Content-Type: application/json' \
--header 'erlcrussia-api-ai-key: <api-key>' \
--data '
{
"name": "Бот поддержки"
}
'import requests
url = "https://api.erlcrussia.com/v3/ai/keys/{id}"
payload = { "name": "Бот поддержки" }
headers = {
"erlcrussia-api-ai-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'erlcrussia-api-ai-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Бот поддержки'})
};
fetch('https://api.erlcrussia.com/v3/ai/keys/{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.erlcrussia.com/v3/ai/keys/{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' => 'Бот поддержки'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"erlcrussia-api-ai-key: <api-key>"
],
]);
$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.erlcrussia.com/v3/ai/keys/{id}"
payload := strings.NewReader("{\n \"name\": \"Бот поддержки\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("erlcrussia-api-ai-key", "<api-key>")
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.erlcrussia.com/v3/ai/keys/{id}")
.header("erlcrussia-api-ai-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Бот поддержки\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erlcrussia.com/v3/ai/keys/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["erlcrussia-api-ai-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Бот поддержки\"\n}"
response = http.request(request)
puts response.read_body{
"id": "21",
"token": "sk-chat-3...0a1c",
"name": "Бот поддержки",
"created_at": "2026-10-21T12:00:00Z",
"is_active": true
}Autorizzazioni
AIManagementKeyHeaderCookieAuth
Chiave HTTP normale per saldi, elenchi di chiavi IA mascherate e gestione delle chiavi esistenti. Creazione e scambio richiedono la sessione del proprietario; le chiavi di esecuzione IA sono vietate.
Parametri del percorso
Corpo
application/json
Maximum string length:
64Questa pagina è stata utile?