Polytomic Subpackage Permissions.subpackage Permissions/policies API

The subpackage_permissions.subpackage_permissions/policies API from Polytomic — 2 operation(s) for subpackage_permissions.subpackage_permissions/policies.

GitHub OpenAPI
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 /api/permissions/policies List permission policies · List Policies #
Ask an LLM
“Which permission policies exist in my organization?”
“What roles and resources does each policy bind together?”
Tell an agent
List all permission policies.
Show every policy that binds roles to resources.
POST /api/permissions/policies Create a permission policy · Create Policy #
Ask an LLM
“How do I grant a role access to certain resources by creating a policy?”
“Can I create a policy that binds several roles to a set of resources?”
Tell an agent
Create a policy named {name} with actions {policy_actions}.
Create policy {name} binding {policy_actions} in organization {organization_id}.
GET /api/permissions/policies/{id} Get a permission policy · Get Policy #
Ask an LLM
“What roles and resources does a specific policy cover?”
“Can I inspect one policy's action bindings in detail?”
Tell an agent
Get policy {id}.
Show the role and resource bindings defined by policy {id}.
PUT /api/permissions/policies/{id} Replace a permission policy · Update Policy #
Ask an LLM
“How do I change a policy's role and resource bindings?”
“Is updating a policy a partial change or a full replacement?”
Tell an agent
Replace policy {id} with name {name} and actions {policy_actions}.
Fully overwrite policy {id} in organization {organization_id} with {name} and {policy_actions}.
DELETE /api/permissions/policies/{id} Delete a permission policy · Delete Policy #
Ask an LLM
“How do I permanently remove a policy?”
“What happens to users' access when a policy is deleted?”
Tell an agent destructive · confirm first
Delete policy {id}.
Permanently remove the policy with ID {id}.

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/polytomic:polytomic-subpackage-permissions-subpackage-permissions-policies-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

polytomic-subpackage-permissions-subpackage-permissions-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Reference Subpackage Permissions.subpackage…
  version: 1.0.0
servers:
- url: https://app.polytomic.com
tags:
- name: subpackage_permissions.subpackage_permissions/policies
paths:
  /api/permissions/policies:
    get:
      operationId: list
      summary: List Policies
      description: 'Lists all policies in the caller''s organization.


        Each policy binds one or more roles to a set of resources, controlling what

        actions members with those roles can perform on those resources.


        To inspect a specific policy in detail, use

        `GET /api/permissions/policies/{id}`.'
      tags:
      - subpackage_permissions.subpackage_permissions/policies
      parameters:
      - name: Authorization
        in: header
        description: Bearer user API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPoliciesResponseEnvelope'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
    post:
      operationId: create
      summary: Create Policy
      description: 'Creates a new policy.


        A policy binds one or more roles to a set of resources, granting members who

        hold those roles the actions defined by them. Roles must already exist before

        they are referenced in a policy; create roles using

        `POST /api/permissions/roles`.'
      tags:
      - subpackage_permissions.subpackage_permissions/policies
      parameters:
      - name: Authorization
        in: header
        description: Bearer user API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyResponseEnvelope'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePolicyRequest'
  /api/permissions/policies/{id}:
    get:
      operationId: get
      summary: Get Policy
      description: 'Returns a single policy by ID, including all action/role bindings it defines.


        Returns the full set of action/role bindings defined by the policy, including

        the resources it applies to.'
      tags:
      - subpackage_permissions.subpackage_permissions/policies
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: Authorization
        in: header
        description: Bearer user API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyResponseEnvelope'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
    put:
      operationId: update
      summary: Update Policy
      description: 'Updates an existing policy.


        The update is a **full replacement** of the policy''s bindings. Any role or

        resource binding not included in the request body is removed. To make a

        partial change, fetch the current policy with

        `GET /api/permissions/policies/{id}`, modify the relevant bindings,

        and send the complete object back.'
      tags:
      - subpackage_permissions.subpackage_permissions/policies
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: Authorization
        in: header
        description: Bearer user API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyResponseEnvelope'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePolicyRequest'
    delete:
      operationId: delete
      summary: Delete Policy
      description: 'Deletes a policy.


        Deletion is permanent. Any access that was granted solely through this policy

        is revoked immediately for all users who depended on it.'
      tags:
      - subpackage_permissions.subpackage_permissions/policies
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - name: Authorization
        in: header
        description: Bearer user API key
        required: true
        schema:
          type: string
      - name: X-Polytomic-Version
        in: header
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Successful response
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    UpdatePolicyRequest:
      type: object
      properties:
        name:
          type: string
        organization_id:
          type:
          - string
          - 'null'
          format: uuid
        policy_actions:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/PolicyAction'
      required:
      - name
      - policy_actions
      title: UpdatePolicyRequest
    PolicyResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        organization_id:
          type: string
          format: uuid
        policy_actions:
          type: array
          items:
            $ref: '#/components/schemas/PolicyAction'
        system:
          type: boolean
      title: PolicyResponse
    PolicyResponseEnvelope:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/PolicyResponse'
      title: PolicyResponseEnvelope
    ApiError:
      type: object
      properties:
        key:
          type: string
        message:
          type: string
        metadata:
          type: object
          additionalProperties:
            description: Any type
        status:
          type: integer
      title: ApiError
    PolicyAction:
      type: object
      properties:
        action:
          type: string
        role_ids:
          type:
          - array
          - 'null'
          items:
            type: string
            format: uuid
      required:
      - action
      - role_ids
      title: PolicyAction
    ListPoliciesResponseEnvelope:
      type: object
      properties:
        data:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/PolicyResponse'
      title: ListPoliciesResponseEnvelope
    CreatePolicyRequest:
      type: object
      properties:
        name:
          type: string
        organization_id:
          type:
          - string
          - 'null'
          format: uuid
        policy_actions:
          type:
          - array
          - 'null'
          items:
            $ref: '#/components/schemas/PolicyAction'
      required:
      - name
      - policy_actions
      title: CreatePolicyRequest
  securitySchemes:
    bearerUserAPIKey:
      type: http
      scheme: bearer
      description: Bearer user API key
    orgScopedAPIKey:
      type: http
      scheme: basic
      description: Basic organization-scoped API key
    bearerPartnerKey:
      type: http
      scheme: bearer
      description: Bearer partner API key