SoftSolzSoftSolz
HomeAPI GuideAPI ReferenceWidget Tester
Blogs

Increment or decrement the like count on an approved comment.

Increment or decrement the like count on an approved comment.

POSThttps://app.softsolz.uk/api/v1/services/blogs/comments/{id}/like

Recent Requests

Kept only in this browser
TimeStatusTook
Send a request with Try it to see it here.

Path Params

idstringrequired

Headers

Authorizationstringrequired

Bearer token: `Bearer sk_live_...` (or `sk_test_...` for sandbox). A login token will not work here.

Body Params

deltainteger

Use 1 to like, -1 to remove a like. Defaults to 1.

Response

Response Body

likesintegerUpdated like count.

Request

curl --request POST \
--url https://app.softsolz.uk/api/v1/services/blogs/comments/{id}/like \
--header 'Authorization: Bearer sk_live_your_key' \
--header 'Content-Type: application/json' \
--data '{
"delta": 1
}'

Credentials

Sent as a Bearer token and used in the samples above and in Try it. Kept only in this browser tab until you close it. Use an sk_test_ key to stay in your sandbox.

Response · 200

{
"data": {
"likes": 1
}
}