I tried the following payload with PATCH request on /api/posts/:id, got 200 response but it seems like it has done nothing at all?
{
"data": {
"type": "posts",
"id": "12",
"relationships": {
"likes": {
"data": [
{
"type": "users",
"id": "2"
}
]
}
}
}
}
I wonder if I can actually "like" a post via REST API or not. If it is possible to "like" a post via REST API, what will be the correct payload? Any help will be appreciated.