Likes
User rating system for places (requires authentication). Users can like or dislike places to help others discover quality content.
Vote on a place quality. Requires authentication.
Vote Options:
like: true- Upvote the place (recommend it)like: false- Downvote the place (not recommended)like: null- Remove your vote
Voting Power: Votes are weighted by user's Decentraland voting power (VP) from Snapshot. Users with more VP have stronger influence on the like_score.
Idempotent: Setting the same vote multiple times has no additional effect.
Decentraland authentication token obtained from the Decentraland SDK or auth services.
To authenticate:
- Use Decentraland's authentication SDK in your application
- Get the auth token from the SDK
- Include in requests:
Authorization: Bearer <token>
UUID of the place
Vote value:
true: Like/upvote (recommend)false: Dislike/downvote (not recommended)null: Remove your vote
trueVote updated successfully
trueUnauthorized - Missing or invalid authentication token
Resource not found - Place/world doesn't exist or is disabled
PATCH /api/places/{place_id}/likes HTTP/1.1
Host: places.decentraland.org
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"like": true
}{
"ok": true,
"data": {
"likes": 47,
"dislikes": 3,
"user_like": true,
"user_dislike": false
}
}Last updated