Skip to main content
POST
/
api
/
user
/
renameHistory
curl --request POST \
  --url https://pria.praxislxp.com/api/user/renameHistory \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "course_id": 1750532703472,
  "course_name": "My Renamed Conversation"
}
'
{
  "success": true,
  "message": "Conversation renamed!"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json

Two mutually exclusive modes. Either rename a conversation (course_id + course_name) or rename a favorite (id + favorite_name).

course_id
number

Course identifier for renaming a conversation. Must be paired with course_name.

Example:

1750532703472

course_name
string

New name for the conversation. Used with course_id.

Example:

"My Renamed Conversation"

id
string

ObjectId of the favorite record to rename. Must be paired with favorite_name.

Example:

"688b024f7db6fe6e921399e3"

favorite_name
string

New name for the favorite. If falsy (empty string or null), the favorite_name field is removed via $unset.

Example:

"Deployment Guide"

Response

Record(s) successfully renamed

success
boolean
Example:

true

message
string

Either 'Conversation renamed!' or 'Favorite renamed!' depending on the mode used

Example:

"Conversation renamed!"