listCapabilities
GET
/api/v1/roles/capabilities
const url = 'https://example.com/api/v1/roles/capabilities';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/roles/capabilitiesThe closed capability vocabulary, with whether the caller may grant each capability in a custom role. Requires users.manage or roles.manage and the admin scope.
Responses
Section titled “ Responses ”Capability vocabulary
Media typeapplication/json
object
data
required
object
items
required
Array<object>
object
key
required
One capability from the server’s closed vocabulary, such as media.upload or playlist.publish. GET /api/v1/roles/capabilities lists them.
string
group
required
string
requires
required
Array<string>
ownerReserved
required
Held only by the built-in Owner role.
boolean
delegable
required
False for capabilities that administer access; only the Owner may put them in a custom role.
boolean
grantable
required
Whether the caller may include it in a custom role.
boolean
Example
{ "data": { "items": [ { "group": "media" } ] }}Dashboard authentication required
Insufficient role