Update Project Settings
Update the AI agent settings for a project.
Update the AI agent configuration for a project. Only the fields you include will be updated — everything else stays unchanged.
Authorization
Your API token must have one of the following:
- Access Role: Owner or Editor (broad access), OR
- Fine-grained Permission: Setting module with Write enabled
Authorization
bearerToken
API token for YourGPT Public APIs. Create tokens in Settings > API Tokens in your YourGPT dashboard.
In: header
Request Body
application/json
The project UID to update settings for.
System prompt for the AI agent.
Restriction instructions for the AI agent.
AI model to use. Some models may not be available on all plans.
Model temperature. Lower values are more deterministic, higher values more creative.
0 <= value <= 2AI mode. 'agent' can use tools and functions, 'chat' is simple Q&A.
"agent" | "chat"Number of previous messages to include as context.
0 <= value <= 50Number of knowledge base nodes to retrieve per query.
1 <= value <= 10Include source page links in AI responses. 0 = no, 1 = yes.
0 | 1Auto-close conversations after N minutes of inactivity (5–43200). Closes permanently — a new session starts on next interaction.
5 <= value <= 43200Auto-resolve conversations after N minutes of inactivity (5–43200). Marks as resolved — users can resume the same conversation.
5 <= value <= 43200Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.yourgpt.ai/chatbot/v1/updateProjectSettings" \ -H "Content-Type: application/json" \ -d '{ "project_uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }'{
"type": "RXSUCCESS",
"message": "Project setting updated successfully"
}{
"type": "RXERROR",
"message": "Invalid model 'gpt-99'. Model not found in available models list."
}{
"type": "RXERROR",
"message": "Invalid or revoked API token"
}{
"type": "RXERROR",
"message": "You do not have permission to perform this action"
}Available Models
To get the list of supported models with their exact identifiers, call the Get Supported Models API:
curl -X POST https://api.yourgpt.ai/chatbot/v1/getSupportedModels \
-H "Content-Type: application/json" \
-d '{}'Use the value field from the response as the model parameter.
Parameter Guide
| Parameter | Type | Range | Description |
|---|---|---|---|
prompt | string | — | System prompt that defines the AI agent's behavior and personality |
restriction | string | — | Instructions for what the AI should NOT do |
model | string | See API above | AI model identifier (use exact value from Get Supported Models) |
temperature | number | 0 to 2 | Controls response randomness. 0.2 = factual, 0.7 = balanced, 1.0+ = creative |
mode | string | agent or chat | agent = can use tools and functions, chat = simple Q&A |
chat_history_count | integer | 0 to 50 | Number of previous messages the AI sees as context |
max_nodes | integer | 1 to 10 | Knowledge base chunks retrieved per query |
add_page_link | integer | 0 or 1 | Include source page links in responses |
auto_close_duration | integer | 5 to 43200 | Minutes of inactivity before conversation is permanently closed |
auto_resolve_duration | integer | 5 to 43200 | Minutes of inactivity before conversation is marked as resolved |