Skip to main content
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!"
}

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Path Parameters

id
string
required

The ObjectId of the assistant to update

Body

application/json
liked_count
integer
required

Value to increment the liked_count by (use negative to decrement). Uses MongoDB $inc operator.

Example:

1

Response

Assistant liked count successfully updated

success
boolean
Example:

true

message
string
Example:

"Assistant updated!"