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.

ValueMeaning
0 or not setKeep conversations forever
2592000Delete after 30 days
7776000Delete after 90 days

This is useful for privacy compliance — for example, if you don't want user chat data stored beyond a certain period.

POST
/updateChatbot

Authorization

bearerToken

AuthorizationBearer <token>

API token for YourGPT Public APIs. Create tokens in Settings > API Tokens in your YourGPT dashboard.

In: header

Request Body

application/json

project_uid*string

The project UID of the chatbot to update.

name?string

New project name.

retention_duration?integer

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"
}