Endpoints
- POSTАгент - Query
- POSTАгент - Create
- GETАгент - Get
- PATCHАгент - Update
- DELАгент - Delete
- POSTИсточник данных - Create
- GETИсточник данных - Get
- DELИсточник данных - Delete
- POSTХранилище данных - Query
- POSTХранилище данных - Create
- GETХранилище данных - Get
- PATCHХранилище данных - Update
- DELХранилище данных - Delete
- POSTХранилище данных - Upsert (⚠️ устарело)
- POSTИсточник данных - Update (⚠️ устарело)
- POSTХранилище данных - File Upload (⚠️ устарело)
Endpoints
Агент - Update
PATCH
/
agents
/
{id}
Copy
curl --request PATCH \
--url https://gptbots.chat/agents/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"modelName": "gpt_3_5_turbo",
"temperature": 123,
"systemPrompt": "<string>",
"userPrompt": "<string>",
"promptType": "raw",
"promptTemplate": "<string>",
"visibility": "public"
}'
Copy
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"modelName": "gpt_3_5_turbo",
"temperature": 123,
"visibility": "public",
"systemPrompt": "<string>",
"userPrompt": "<string>",
"promptType": "raw",
"promptTemplate": "<string>"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Success
The response is of type object
.
Copy
curl --request PATCH \
--url https://gptbots.chat/agents/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"description": "<string>",
"modelName": "gpt_3_5_turbo",
"temperature": 123,
"systemPrompt": "<string>",
"userPrompt": "<string>",
"promptType": "raw",
"promptTemplate": "<string>",
"visibility": "public"
}'
Copy
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"modelName": "gpt_3_5_turbo",
"temperature": 123,
"visibility": "public",
"systemPrompt": "<string>",
"userPrompt": "<string>",
"promptType": "raw",
"promptTemplate": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.