Update a history record
curl --request PUT \
--url https://pria.praxislxp.com/api/user/history/{id} \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"favorite": true,
"forgotten": false,
"favorite_name": "Deployment Guide",
"course_name": "<string>",
"thumbUpDown": "up"
}
'{
"success": true,
"data": {},
"message": "History updated!"
}History
Update a history record
Updates a user’s history record with the provided properties. Accepts any valid history field in the body, not just favorite and forgotten. Returns the full updated document.
PUT
/
api
/
user
/
history
/
{id}
Update a history record
curl --request PUT \
--url https://pria.praxislxp.com/api/user/history/{id} \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"favorite": true,
"forgotten": false,
"favorite_name": "Deployment Guide",
"course_name": "<string>",
"thumbUpDown": "up"
}
'{
"success": true,
"data": {},
"message": "History updated!"
}Authorizations
JWT token passed in x-access-token header
Path Parameters
The ObjectId of the history record to update
Body
application/json
Accepts any properties to update on the history document. Common fields include favorite and forgotten, but any valid history field is accepted.
Whether to mark the history item as favorite
Example:
true
Whether to soft-delete the dialogue from history
Example:
false
Custom name for a favorited record
Example:
"Deployment Guide"
Update the course name for this record
User feedback on the response
Example:
"up"
Was this page helpful?
⌘I