Increment an assistant's liked count
curl --request PUT \
--url https://pria.praxislxp.com/api/user/assistantLikesCount/{id} \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"liked_count": 1
}
'{
"success": true,
"message": "Assistant updated!"
}Assistants
Increment an assistant's liked count
Increments the liked_count field of an assistant using MongoDB $inc operator. The liked_count value from the request body is added to the current count (can be negative to decrement). Any authenticated user can call this endpoint.
PUT
/
api
/
user
/
assistantLikesCount
/
{id}
Increment an assistant's liked count
curl --request PUT \
--url https://pria.praxislxp.com/api/user/assistantLikesCount/{id} \
--header 'Content-Type: application/json' \
--header 'x-access-token: <api-key>' \
--data '
{
"liked_count": 1
}
'{
"success": true,
"message": "Assistant updated!"
}Documentation Index
Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
JWT token passed in x-access-token header
Path Parameters
The ObjectId of the assistant to update
Body
application/json
Value to increment the liked_count by (use negative to decrement). Uses MongoDB $inc operator.
Example:
1
Was this page helpful?
⌘I