cURL
curl --request PUT \ --url https://pria.praxislxp.com/api/user/history/{historyId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "favorite": true, "forgotten": true }'
{ "success": true, "history": { "acknowledged": true, "modifiedCount": 1, "upsertedId": null, "upsertedCount": 0, "matchedCount": 1 }, "message": "History updated!" }
Updates a user’s history record, such as marking it as favorite
JWT token passed in x-access-token header
The unique identifier of the history record to update
History record successfully updated
The response is of type object.
object
Was this page helpful?