Update Project
Update the name or settings of a chatbot project.
Update the name or configuration of an existing project.
Required: Owner or Editor role, Chatbot > Write permission
About retention_duration
Retention duration controls how long conversation history is stored for this project before being automatically deleted. It is set in seconds.
| Value | Meaning |
|---|---|
0 or not set | Keep conversations forever |
2592000 | Delete after 30 days |
7776000 | Delete after 90 days |
This is useful for privacy compliance — for example, if you don't want user chat data stored beyond a certain period.
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 of the chatbot to update.
New project name.
How long (in seconds) conversation history is kept before being automatically deleted. For example, 2592000 = 30 days. Set to 0 to keep conversations forever (no expiry).
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://api.yourgpt.ai/chatbot/v1/updateChatbot" \ -H "Content-Type: application/json" \ -d '{ "project_uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890" }'{
"type": "RXSUCCESS",
"message": "Data Updated Successfully!"
}{
"type": "RXERROR",
"message": "Invalid params"
}{
"type": "RXERROR",
"message": "Invalid or revoked API token"
}{
"type": "RXERROR",
"message": "You do not have permission to perform this action"
}