Skip to main content
PATCH
/
v1
/
models
/
{model_id}
Update Model
curl --request PATCH \
  --url https://api.oneinbox.ai/v1/models/{model_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "model": "<string>",
  "system_prompt": "<string>",
  "temperature": 1,
  "max_tokens": 64000,
  "tool_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "knowledge_base_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "custom_websocket_url": "<string>"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "provider": "<string>",
  "model": "<string>",
  "system_prompt": "<string>",
  "temperature": 123,
  "max_tokens": 123,
  "tool_ids": [
    "<string>"
  ],
  "knowledge_base_ids": [
    "<string>"
  ],
  "custom_websocket_url": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

model_id
string<uuid>
required

Body

application/json
name
string | null
Required string length: 1 - 255
model
string | null
system_prompt
string | null
temperature
number | null
Required range: 0 <= x <= 2
max_tokens
integer | null
Required range: 1 <= x <= 128000
tool_ids
string<uuid>[] | null
knowledge_base_ids
string<uuid>[] | null
custom_websocket_url
string | null

Response

Successful Response

id
string
required
name
string
required
provider
string
required
model
string
required
system_prompt
string
required
temperature
number
required
max_tokens
integer | null
required
tool_ids
string[]
required
knowledge_base_ids
string[]
required
custom_websocket_url
string | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required