naftiko: 1.0.0-alpha2 info: label: Permit.io API — Resource Actions description: 'Permit.io API — Resource Actions. 5 operations. Lead operation: List Resource Actions. Self-contained Naftiko capability covering one Permit Io business surface.' tags: - Permit Io - Resource Actions created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PERMIT_IO_API_KEY: PERMIT_IO_API_KEY capability: consumes: - type: http namespace: permit-io-resource-actions baseUri: '' description: Permit.io API — Resource Actions business capability. Self-contained, no shared references. resources: - name: v2-schema-proj_id-env_id-resources-resource_id-actions path: /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions operations: - name: listresourceactions method: GET description: List Resource Actions outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: resource_id in: path type: string description: 'Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug").' required: true - name: proj_id in: path type: string description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").' required: true - name: env_id in: path type: string description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").' required: true - name: page in: query type: integer description: Page number of the results to fetch, starting at 1. - name: per_page in: query type: integer description: The number of results per page (max 100). - name: createresourceaction method: POST description: Create Resource Action outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: resource_id in: path type: string description: 'Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug").' required: true - name: proj_id in: path type: string description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").' required: true - name: env_id in: path type: string description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").' required: true - name: body in: body type: object description: Request body (JSON). required: true - name: v2-schema-proj_id-env_id-resources-resource_id-actions-action_id path: /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions/{action_id} operations: - name: getresourceaction method: GET description: Get Resource Action outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: resource_id in: path type: string description: 'Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug").' required: true - name: action_id in: path type: string description: 'Either the unique id of the action, or the URL-friendly key of the action (i.e: the "slug").' required: true - name: proj_id in: path type: string description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").' required: true - name: env_id in: path type: string description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").' required: true - name: deleteresourceaction method: DELETE description: Delete Resource Action outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: resource_id in: path type: string description: 'Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug").' required: true - name: action_id in: path type: string description: 'Either the unique id of the action, or the URL-friendly key of the action (i.e: the "slug").' required: true - name: proj_id in: path type: string description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").' required: true - name: env_id in: path type: string description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").' required: true - name: updateresourceaction method: PATCH description: Update Resource Action outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: resource_id in: path type: string description: 'Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug").' required: true - name: action_id in: path type: string description: 'Either the unique id of the action, or the URL-friendly key of the action (i.e: the "slug").' required: true - name: proj_id in: path type: string description: 'Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").' required: true - name: env_id in: path type: string description: 'Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").' required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.PERMIT_IO_API_KEY}}' exposes: - type: rest namespace: permit-io-resource-actions-rest port: 8080 description: REST adapter for Permit.io API — Resource Actions. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v2/schema/{proj-id}/{env-id}/resources/{resource-id}/actions name: v2-schema-proj-id-env-id-resources-resource-id-actions description: REST surface for v2-schema-proj_id-env_id-resources-resource_id-actions. operations: - method: GET name: listresourceactions description: List Resource Actions call: permit-io-resource-actions.listresourceactions with: resource_id: rest.resource_id proj_id: rest.proj_id env_id: rest.env_id page: rest.page per_page: rest.per_page outputParameters: - type: object mapping: $. - method: POST name: createresourceaction description: Create Resource Action call: permit-io-resource-actions.createresourceaction with: resource_id: rest.resource_id proj_id: rest.proj_id env_id: rest.env_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v2/schema/{proj-id}/{env-id}/resources/{resource-id}/actions/{action-id} name: v2-schema-proj-id-env-id-resources-resource-id-actions-action-id description: REST surface for v2-schema-proj_id-env_id-resources-resource_id-actions-action_id. operations: - method: GET name: getresourceaction description: Get Resource Action call: permit-io-resource-actions.getresourceaction with: resource_id: rest.resource_id action_id: rest.action_id proj_id: rest.proj_id env_id: rest.env_id outputParameters: - type: object mapping: $. - method: DELETE name: deleteresourceaction description: Delete Resource Action call: permit-io-resource-actions.deleteresourceaction with: resource_id: rest.resource_id action_id: rest.action_id proj_id: rest.proj_id env_id: rest.env_id outputParameters: - type: object mapping: $. - method: PATCH name: updateresourceaction description: Update Resource Action call: permit-io-resource-actions.updateresourceaction with: resource_id: rest.resource_id action_id: rest.action_id proj_id: rest.proj_id env_id: rest.env_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: permit-io-resource-actions-mcp port: 9090 transport: http description: MCP adapter for Permit.io API — Resource Actions. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-resource-actions description: List Resource Actions hints: readOnly: true destructive: false idempotent: true call: permit-io-resource-actions.listresourceactions with: resource_id: tools.resource_id proj_id: tools.proj_id env_id: tools.env_id page: tools.page per_page: tools.per_page outputParameters: - type: object mapping: $. - name: create-resource-action description: Create Resource Action hints: readOnly: false destructive: false idempotent: false call: permit-io-resource-actions.createresourceaction with: resource_id: tools.resource_id proj_id: tools.proj_id env_id: tools.env_id body: tools.body outputParameters: - type: object mapping: $. - name: get-resource-action description: Get Resource Action hints: readOnly: true destructive: false idempotent: true call: permit-io-resource-actions.getresourceaction with: resource_id: tools.resource_id action_id: tools.action_id proj_id: tools.proj_id env_id: tools.env_id outputParameters: - type: object mapping: $. - name: delete-resource-action description: Delete Resource Action hints: readOnly: false destructive: true idempotent: true call: permit-io-resource-actions.deleteresourceaction with: resource_id: tools.resource_id action_id: tools.action_id proj_id: tools.proj_id env_id: tools.env_id outputParameters: - type: object mapping: $. - name: update-resource-action description: Update Resource Action hints: readOnly: false destructive: false idempotent: true call: permit-io-resource-actions.updateresourceaction with: resource_id: tools.resource_id action_id: tools.action_id proj_id: tools.proj_id env_id: tools.env_id body: tools.body outputParameters: - type: object mapping: $.