Manage roles

The Snowflake REST Role API provides the following endpoints to manage Snowflake roles:

Snowflake REST Role API endpoints

EndpointDescription
POST /api/v2/rolesCreates a role according to the specified parameters.
GET /api/v2/rolesLists the roles available to the user’s account.
DELETE /api/v2/roles/nameDeletes the specified role.
GET /api/v2/roles/name/grantsLists all grants to the role.
POST /api/v2/roles/name/grantsGrants privileges to the specified role.
POST /api/v2/roles/name/grants:revokeRevokes grants from the specified role.
GET /api/v2/roles/name/grants-ofLists all grants of the specified role.
GET /api/v2/roles/name/grants-onLists all grants on the specified role.
GET /api/v2/roles/name/future-grantsLists all future grants to the specified role.
POST /api/v2/roles/name/future-grantsGrants future privileges to the specified role.
POST /api/v2/roles/name/future-grants:revokeRevokes future grants from the specified role

For reference documentation, see Snowflake Role API reference.