Walletguide
DevelopersAPIReferencecomments

Like

Adds or removes a user id from the comment's likedUserIds (legacy like/unlikeComment). op 'add' is idempotent; 'remove' filters the id out.

POST
/wallets/{walletId}/comments/{id}/like

Authorization

bearerAuth
headerAuthorization<token>

A Walletguide API key (wg_…) or an OAuth bearer token. Paste the value only. Create a key under Wallet settings → API keys.

Path Parameters

walletId*string

Row uuid

Formatuuid
id*string

Row uuid

Formatuuid

Request Body

application/json
  1. body
op*string
Value in"add""remove"
userId*string
Length1 <= length

Response Body

The updated comment

application/json
  1. response
id*string
Formatuuid
walletId*string
Formatuuid
firestoreId*string|null
transactionId*string
Formatuuid
text*string
taggedUserIds*array<string>
likedUserIds*array<string>
createdTime*|
Formatdate-time
createdUserId*string|null
lastUpdatedTime*|
Formatdate-time
lastUpdatedUserId*string|null
Example Request
curl -X POST 'https://api.walletguide.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/comments/497f6eca-6276-4993-bfeb-53cbbbba6f08/like' \  -H 'Content-Type: application/json' \  -d '{  "op": "add",  "userId": "string"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "walletId": "0ecad4a2-3549-43fb-807e-9ff033247480",  "firestoreId": "string",  "transactionId": "75906707-8c31-479c-b354-aa805c4cefbc",  "text": "string",  "taggedUserIds": [    "string"  ],  "likedUserIds": [    "string"  ],  "createdTime": "2019-08-24T14:15:22Z",  "createdUserId": "string",  "lastUpdatedTime": "2019-08-24T14:15:22Z",  "lastUpdatedUserId": "string"}