Skip to main content
POST
/
favorites
cURL
curl --request POST \
  --url https://api.example.com/favorites \
  --header 'Content-Type: application/json' \
  --data '
{
  "entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'
{
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "entityId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "createdAt": "2023-11-07T05:31:56Z"
  }
}

Body

application/json
entityId
string<uuid>
required
Minimum string length: 1

Response

Favorite already exists

data
object
required