Add to Favourites
Add folder to your list of favourite folders.
Endpoint
http
POST /api/v1/favouritesParameters
Body parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ids | array | yes | The 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."
]
}
}