access_control

Set resource permissions for a built-in role.

Assigns permissions for a resource by a given type (:resource) and :resourceID to a built-in role. Allowed resources are datasources, teams, dashboards, folders, and serviceaccounts. Refer to the /access-control/{resource}/description endpoint for allowed Permissions.

post/access-control/{resource}/{resourceID}/builtInRoles/{builtInRole}

Request

  • Base URL
    /api (relative, and the document’s source URL is not known)
  • URL
    /api/access-control/{resource}/{resourceID}/builtInRoles/{builtInRole}
  • Auth
    • HTTP basic
    • or API key in header Authorization

Path parameters

resourcestring required
resourceIDstring required
builtInRolestring required

Request body

permissionstring

Response

An OKResponse is returned if the request was successful.

messagestring

Changes

No recorded changes to this operation across all 1 revision of this API.