Snyk TenantRole API

The TenantRole API from Snyk — 2 operation(s) for tenantrole.

Business capability
Identity & Access Management BC-620.20

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /tenants/{tenant_id}/roles List roles available in a tenant · List all available roles for a given tenant (Early Access) #
Ask an LLM
“Which roles are available in my tenant?”
“Can I list only the custom roles I'm allowed to assign?”
Tell an agent
List the roles in tenant {tenant_id}.
List tenant {tenant_id} roles where custom is {custom}.
POST /tenants/{tenant_id}/roles Create a custom tenant role · Create a custom tenant role for a given tenant (Early Access) #
Ask an LLM
“How do I create a custom role for my tenant?”
“Can I define my own set of permissions as a tenant role?”
Tell an agent
Create a custom role in tenant {tenant_id}.
Add a new read-only auditor role to tenant {tenant_id}.
DELETE /tenants/{tenant_id}/roles/{role_id} Delete a custom tenant role · Delete a specific tenant role by its id and its tenant id. (Early Access) #
Ask an LLM
“Can I delete a custom role from my tenant?”
“What removes a tenant role I no longer need?”
Tell an agent destructive · confirm first
Delete role {role_id} from tenant {tenant_id}.
Remove custom tenant {tenant_id} role {role_id}.
GET /tenants/{tenant_id}/roles/{role_id} Get a tenant role and its permissions · Return a specific role by its id and its tenant id. (Early Access) #
Ask an LLM
“What permissions does a particular tenant role grant?”
“Can I tell whether any users are assigned to a tenant role?”
Tell an agent
Get role {role_id} in tenant {tenant_id}.
Show tenant {tenant_id} role {role_id} with has_users_assigned {has_users_assigned}.
PATCH /tenants/{tenant_id}/roles/{role_id} Update a custom tenant role · Update a specific tenant role by its id and its tenant id. (Early Access) #
Ask an LLM
“Can I change the permissions on an existing custom tenant role?”
“Is there a force option when updating a tenant role that users already hold?”
Tell an agent
Update role {role_id} in tenant {tenant_id}.
Update tenant {tenant_id} role {role_id} with force set to {force}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/snyk:snyk-tenantrole-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

snyk-tenantrole-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Snyk Tenant Role API
  version: REST
servers:
- description: Snyk REST API
  url: https://api.snyk.io/rest
security:
- APIToken: []
- BearerAuth: []
tags:


# --- truncated at 32 KB (33 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/snyk/refs/heads/main/openapi/snyk-tenantrole-api-openapi.yml