Skip to main content
PUT
/
api
/
admin
/
aimodel
/
{id}
Update AI model
curl --request PUT \
  --url https://pria.praxislxp.com/api/admin/aimodel/{id} \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "name": "<string>",
  "institution": "<string>",
  "description": "<string>",
  "api_url": "<string>",
  "api_key": "<string>",
  "default_headers": {},
  "features": {
    "stream": false,
    "tools": false,
    "code": false,
    "vision": false,
    "mcp": false
  },
  "input_media": {
    "text": true,
    "image": false,
    "audio": false,
    "video": false,
    "pdf": false
  },
  "output_media": {
    "text": true,
    "audio": false,
    "video": false,
    "image": false
  },
  "max_input_tokens": 123,
  "max_output_tokens": 123,
  "extended_context": true,
  "picture_url": "<string>"
}
'
import requests

url = "https://pria.praxislxp.com/api/admin/aimodel/{id}"

payload = {
"name": "<string>",
"institution": "<string>",
"description": "<string>",
"api_url": "<string>",
"api_key": "<string>",
"default_headers": {},
"features": {
"stream": False,
"tools": False,
"code": False,
"vision": False,
"mcp": False
},
"input_media": {
"text": True,
"image": False,
"audio": False,
"video": False,
"pdf": False
},
"output_media": {
"text": True,
"audio": False,
"video": False,
"image": False
},
"max_input_tokens": 123,
"max_output_tokens": 123,
"extended_context": True,
"picture_url": "<string>"
}
headers = {
"x-access-token": "<api-key>",
"Content-Type": "application/json"
}

response = requests.put(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'PUT',
headers: {'x-access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
institution: '<string>',
description: '<string>',
api_url: '<string>',
api_key: '<string>',
default_headers: {},
features: {stream: false, tools: false, code: false, vision: false, mcp: false},
input_media: {text: true, image: false, audio: false, video: false, pdf: false},
output_media: {text: true, audio: false, video: false, image: false},
max_input_tokens: 123,
max_output_tokens: 123,
extended_context: true,
picture_url: '<string>'
})
};

fetch('https://pria.praxislxp.com/api/admin/aimodel/{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://pria.praxislxp.com/api/admin/aimodel/{id}",
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([
'name' => '<string>',
'institution' => '<string>',
'description' => '<string>',
'api_url' => '<string>',
'api_key' => '<string>',
'default_headers' => [

],
'features' => [
'stream' => false,
'tools' => false,
'code' => false,
'vision' => false,
'mcp' => false
],
'input_media' => [
'text' => true,
'image' => false,
'audio' => false,
'video' => false,
'pdf' => false
],
'output_media' => [
'text' => true,
'audio' => false,
'video' => false,
'image' => false
],
'max_input_tokens' => 123,
'max_output_tokens' => 123,
'extended_context' => true,
'picture_url' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)

func main() {

url := "https://pria.praxislxp.com/api/admin/aimodel/{id}"

payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"institution\": \"<string>\",\n \"description\": \"<string>\",\n \"api_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"default_headers\": {},\n \"features\": {\n \"stream\": false,\n \"tools\": false,\n \"code\": false,\n \"vision\": false,\n \"mcp\": false\n },\n \"input_media\": {\n \"text\": true,\n \"image\": false,\n \"audio\": false,\n \"video\": false,\n \"pdf\": false\n },\n \"output_media\": {\n \"text\": true,\n \"audio\": false,\n \"video\": false,\n \"image\": false\n },\n \"max_input_tokens\": 123,\n \"max_output_tokens\": 123,\n \"extended_context\": true,\n \"picture_url\": \"<string>\"\n}")

req, _ := http.NewRequest("PUT", url, payload)

req.Header.Add("x-access-token", "<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.put("https://pria.praxislxp.com/api/admin/aimodel/{id}")
.header("x-access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"institution\": \"<string>\",\n \"description\": \"<string>\",\n \"api_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"default_headers\": {},\n \"features\": {\n \"stream\": false,\n \"tools\": false,\n \"code\": false,\n \"vision\": false,\n \"mcp\": false\n },\n \"input_media\": {\n \"text\": true,\n \"image\": false,\n \"audio\": false,\n \"video\": false,\n \"pdf\": false\n },\n \"output_media\": {\n \"text\": true,\n \"audio\": false,\n \"video\": false,\n \"image\": false\n },\n \"max_input_tokens\": 123,\n \"max_output_tokens\": 123,\n \"extended_context\": true,\n \"picture_url\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://pria.praxislxp.com/api/admin/aimodel/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request["x-access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"institution\": \"<string>\",\n \"description\": \"<string>\",\n \"api_url\": \"<string>\",\n \"api_key\": \"<string>\",\n \"default_headers\": {},\n \"features\": {\n \"stream\": false,\n \"tools\": false,\n \"code\": false,\n \"vision\": false,\n \"mcp\": false\n },\n \"input_media\": {\n \"text\": true,\n \"image\": false,\n \"audio\": false,\n \"video\": false,\n \"pdf\": false\n },\n \"output_media\": {\n \"text\": true,\n \"audio\": false,\n \"video\": false,\n \"image\": false\n },\n \"max_input_tokens\": 123,\n \"max_output_tokens\": 123,\n \"extended_context\": true,\n \"picture_url\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "success": true,
  "message": "User institution deleted successfully"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

id
string
required

AI Model ID

Body

application/json

Partial update. Every field is optional; only the keys provided are written. The handler merges client_library / api_url / api_key with the stored document before re-validating, so you can update one field without resending the others.

name
string
institution
string
model_use
enum<string>
Available options:
conversationModel,
imageGenerationModel,
audioGenerationModel,
videoGenerationModel,
imageAnalysisModel,
embeddingsModel,
audioAnalysisModel,
videoAnalysisModel,
ttsModel,
summaryModel,
rtModel,
moderationModel
description
string
client_library
enum<string>
Available options:
openai_cli,
anthropic_cli,
bedrock_cli,
google_cli,
mistral_cli,
xai_cli,
stability_cli
api_url
string
api_key
string
default_headers
object
features
object

Capability flags advertised by the model.

input_media
object

Input modalities the model accepts.

output_media
object

Output modalities the model can produce.

max_input_tokens
integer
max_output_tokens
integer
reasoning_effort
enum<string> | null
Available options:
none,
low,
medium,
high,
max
extended_context
boolean
status
enum<string>
Available options:
active,
inactive
picture_url
string

Response

AI model updated successfully

success
boolean
Example:

true

message
string

Success message

Example:

"User institution deleted successfully"