Flags
The MediaVault API provides access to flags associated with users. You can retrieve all public flags for the logged-in user, as well as access private flags using a specific user ID. These capabilities help you effectively manage both public and private flags within your application.
GET /flags/public
Get all associated public flags for the logged in user.
No parameters are required.
Request
curl -X 'GET' \
'https://api.mediavaultplus.com/flags/public' \
-H 'accept: application/json'
Response
{
"isError": false,
"errorMessage": null,
"data": [
{
"Id": 100,
"Type": "Public",
"Name": "Do Not Delete",
"DateCreated": "2024-10-09T09:06:24.3226687-05:00",
"DateModified": "2024-10-09T09:06:24.322836-05:00"
},
{
"Id": 101,
"Type": "Public",
"Name": "Do Not Edit",
"DateCreated": "2024-10-09T09:06:24.3229063-05:00",
"DateModified": "2024-10-09T09:06:24.3229082-05:00"
},
{
"Id": 102,
"Type": "Public",
"Name": "Others",
"DateCreated": "2024-10-09T09:06:24.3229093-05:00",
"DateModified": "2024-10-09T09:06:24.3229103-05:00"
}
]
}
GET /flags/private
Get all private flags for the user id provided
Required Parameters
user_id integer
ID of the user to retrieve the associated flags
Request
curl -X 'GET' \
'https://api.mediavaultplus.com/flags/private?user_id=1' \
-H 'accept: application/json'
Response
{
"isError": false,
"errorMessage": null,
"data": [
{
"Id": 200,
"Type": "Private",
"Name": "Financial",
"DateCreated": "2024-10-09T09:06:24.3763958-05:00",
"DateModified": "2024-10-09T09:06:24.3764076-05:00"
},
{
"Id": 201,
"Type": "Private",
"Name": "Personal - Work",
"DateCreated": "2024-10-09T09:06:24.3764102-05:00",
"DateModified": "2024-10-09T09:06:24.3764106-05:00"
},
{
"Id": 202,
"Type": "Private",
"Name": "Personal",
"DateCreated": "2024-10-09T09:06:24.376411-05:00",
"DateModified": "2024-10-09T09:06:24.3764114-05:00"
}
]
}