Passbolt · Capability

Passbolt API — Resource types

Passbolt API — Resource types. 4 operations. Lead operation: Get multiple resource types.. Self-contained Naftiko capability covering one Passbolt business surface.

Run with Naftiko PassboltResource types

What You Can Do

GET
Resourcetypesindex — Get multiple resource types.
/v1/resource-types-json
GET
Viewresourcetype — Get a resource type.
/v1/resource-types/resourcetypeid-json
DELETE
Deleteresourcetype — Delete a resource type.
/v1/resource-types/resourcetypeid-json
PUT
Updateresourcetype — Update resource type.
/v1/resource-types/resourcetypeid-json

MCP Tools

get-multiple-resource-types

Get multiple resource types.

read-only idempotent
get-resource-type

Get a resource type.

read-only idempotent
delete-resource-type

Delete a resource type.

idempotent
update-resource-type

Update resource type.

idempotent

Capability Spec

passbolt-resource-types.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Passbolt API — Resource types
  description: 'Passbolt API — Resource types. 4 operations. Lead operation: Get multiple resource types.. Self-contained
    Naftiko capability covering one Passbolt business surface.'
  tags:
  - Passbolt
  - Resource types
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PASSBOLT_API_KEY: PASSBOLT_API_KEY
capability:
  consumes:
  - type: http
    namespace: passbolt-resource-types
    baseUri: https://passbolt.local
    description: Passbolt API — Resource types business capability. Self-contained, no shared references.
    resources:
    - name: resource-types.json
      path: /resource-types.json
      operations:
      - name: resourcetypesindex
        method: GET
        description: Get multiple resource types.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: resource-types-resourceTypeId}.json
      path: /resource-types/{resourceTypeId}.json
      operations:
      - name: viewresourcetype
        method: GET
        description: Get a resource type.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deleteresourcetype
        method: DELETE
        description: Delete a resource type.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateresourcetype
        method: PUT
        description: Update resource type.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.PASSBOLT_API_KEY}}'
  exposes:
  - type: rest
    namespace: passbolt-resource-types-rest
    port: 8080
    description: REST adapter for Passbolt API — Resource types. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/resource-types-json
      name: resource-types-json
      description: REST surface for resource-types.json.
      operations:
      - method: GET
        name: resourcetypesindex
        description: Get multiple resource types.
        call: passbolt-resource-types.resourcetypesindex
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/resource-types/resourcetypeid-json
      name: resource-types-resourcetypeid-json
      description: REST surface for resource-types-resourceTypeId}.json.
      operations:
      - method: GET
        name: viewresourcetype
        description: Get a resource type.
        call: passbolt-resource-types.viewresourcetype
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteresourcetype
        description: Delete a resource type.
        call: passbolt-resource-types.deleteresourcetype
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateresourcetype
        description: Update resource type.
        call: passbolt-resource-types.updateresourcetype
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: passbolt-resource-types-mcp
    port: 9090
    transport: http
    description: MCP adapter for Passbolt API — Resource types. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-multiple-resource-types
      description: Get multiple resource types.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: passbolt-resource-types.resourcetypesindex
      outputParameters:
      - type: object
        mapping: $.
    - name: get-resource-type
      description: Get a resource type.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: passbolt-resource-types.viewresourcetype
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-resource-type
      description: Delete a resource type.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: passbolt-resource-types.deleteresourcetype
      outputParameters:
      - type: object
        mapping: $.
    - name: update-resource-type
      description: Update resource type.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: passbolt-resource-types.updateresourcetype
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.