Skip to content

Add to Favourites

Add folder to your list of favourite folders.

Endpoint

http
POST /api/v1/favourites

Parameters

Body parameters

ParameterTypeRequiredDescription
idsarrayyesThe array of folders uuid to add into list of users favourites folders

Request example

sh
curl --location --request POST 'https://files.ro/api/v1/favourites' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {token}' \
--data-raw '{
  "ids": [
    "{folder_id}"
  ]
}'

Response

json
{
  "type": "success",
  "message": "Folder was successfully added into your favourites folders"
}
json
{
  "type": "error",
  "message": "You are not authorized"
}
json
{
  "message": "The given data was invalid.",
  "errors": {
    "field": [
      "The field is required."
    ]
  }
}