Set Favourite

This API endpoint allows a user to set a gig as their favourite or remove it from their favourites.

Endpoint #

The Voomerr Set Favourite endpoint is POST https://admin.voomerr.com/api/set_favourite.php

Request Parameters #

Parameter Data Type Required Description
gig_id string Yes ID of the gig
user_id string Yes ID of the user
favourite boolean Yes Boolean value to set/unset favourite status. True if set as favourite, False if unset as favourite

Response Parameters #

Parameter Data Type Description
success boolean Indicates whether the request was successful or not
message string A message indicating the status of the request
favourite_status boolean The current favourite status of the gig for the user

Example Request #

json
POST https://admin.voomerr.com/api/set_favourite.php
Request Body:
{
"gig_id": "12345",
"user_id": "67890",
"favourite": true
}

Example Response #

json
{
"success": true,
"message": "Favourite status updated successfully.",
"favourite_status": true
}

Powered by BetterDocs