Remove the account's custom AI model of one model type
curl --request DELETE \
--url https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse} \
--header 'x-access-token: <api-key>'import requests
url = "https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}"
headers = {"x-access-token": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-access-token': '<api-key>'}};
fetch('https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}', 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://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-access-token: <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"
"net/http"
"io"
)
func main() {
url := "https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_bodyAdmin Accounts
Remove the account's custom AI model of one model type
Deletes the model and its key. For that model type each Digital Twin of the account goes back to its own model: its custom AI model when it has one, otherwise the model selected for it.
DELETE
/
api
/
admin
/
accounts
/
{accountId}
/
aimodels
/
{modelUse}
Remove the account's custom AI model of one model type
curl --request DELETE \
--url https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse} \
--header 'x-access-token: <api-key>'import requests
url = "https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}"
headers = {"x-access-token": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-access-token': '<api-key>'}};
fetch('https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}', 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://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-access-token: <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"
"net/http"
"io"
)
func main() {
url := "https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-access-token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}")
.header("x-access-token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://hiimpria.ai/api/admin/accounts/{accountId}/aimodels/{modelUse}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-access-token"] = '<api-key>'
response = http.request(request)
puts response.read_bodyPath Parameters
Response
Removed
Was this page helpful?