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>",
  "provider": "<string>",
  "modelId": "<string>",
  "description": "<string>",
  "maxTokens": 123,
  "inputPrice": 123,
  "outputPrice": 123,
  "status": "active",
  "institution": "<string>"
}
'
{
  "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
name
string
required

Model display name

provider
string
required

Model provider

modelId
string
required

External model identifier

description
string

Model description

maxTokens
integer

Maximum tokens

inputPrice
number

Price per input token

outputPrice
number

Price per output token

status
enum<string>
Available options:
active,
inactive
institution
string

Institution ID for custom models

Response

AI model updated successfully

success
boolean
Example:

true

message
string

Success message

Example:

"User institution deleted successfully"