PUT
/chat/{chatId}
curl \
--request PUT 'http://localhost:3000/api/v1/chat/{chatId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"chatName":"Updated Chat Name"}'
Request example
{
"chatName": "Updated Chat Name"
}
Response examples (200)
{
"success": true,
"statusCode": 200,
"message": "string",
"data": {
"id": "string",
"userId": "string",
"chatName": "string",
"systemMessage": "string",
"createdAt": "2025-05-04T09:42:00Z",
"updatedAt": "2025-05-04T09:42:00Z",
"status": "active",
"type": "text"
}
}
Response examples (400)
{
"success": false,
"statusCode": 400,
"message": "Error description"
}
Response examples (401)
{
"success": false,
"statusCode": 400,
"message": "Error description"
}
Response examples (404)
{
"success": false,
"statusCode": 400,
"message": "Error description"
}
Response examples (500)
{
"success": false,
"statusCode": 400,
"message": "Error description"
}