Knowi · Capability

Knowi Management API — Groups

Knowi Management API — Groups. 8 operations. Lead operation: List groups. Self-contained Naftiko capability covering one Knowi business surface.

Run with Naftiko KnowiGroups

What You Can Do

GET
Listgroups — List groups
/v1/groups
POST
Creategroup — Create group
/v1/groups
GET
Getgroup — Get group
/v1/groups/{groupid}
PUT
Updategroup — Update group
/v1/groups/{groupid}
DELETE
Deletegroup — Delete group
/v1/groups/{groupid}
GET
Listusergroups — List user groups
/v1/users/{userid}/groups
POST
Createusergroup — Create group for user
/v1/users/{userid}/groups
DELETE
Removeusergroup — Remove group from user
/v1/users/{userid}/groups/{groupid}

MCP Tools

list-groups

List groups

read-only idempotent
create-group

Create group

get-group

Get group

read-only idempotent
update-group

Update group

idempotent
delete-group

Delete group

idempotent
list-user-groups

List user groups

read-only idempotent
create-group-user

Create group for user

remove-group-user

Remove group from user

idempotent

Capability Spec

management-groups.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Knowi Management API — Groups
  description: 'Knowi Management API — Groups. 8 operations. Lead operation: List groups. Self-contained Naftiko capability
    covering one Knowi business surface.'
  tags:
  - Knowi
  - Groups
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    KNOWI_API_KEY: KNOWI_API_KEY
capability:
  consumes:
  - type: http
    namespace: management-groups
    baseUri: https://knowi.com/api/1.0
    description: Knowi Management API — Groups business capability. Self-contained, no shared references.
    resources:
    - name: groups
      path: /groups
      operations:
      - name: listgroups
        method: GET
        description: List groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: creategroup
        method: POST
        description: Create group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: groups-groupId
      path: /groups/{groupId}
      operations:
      - name: getgroup
        method: GET
        description: Get group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updategroup
        method: PUT
        description: Update group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: deletegroup
        method: DELETE
        description: Delete group
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-userId-groups
      path: /users/{userId}/groups
      operations:
      - name: listusergroups
        method: GET
        description: List user groups
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createusergroup
        method: POST
        description: Create group for user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: users-userId-groups-groupId
      path: /users/{userId}/groups/{groupId}
      operations:
      - name: removeusergroup
        method: DELETE
        description: Remove group from user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userId
          in: path
          type: string
          required: true
        - name: groupId
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.KNOWI_API_KEY}}'
  exposes:
  - type: rest
    namespace: management-groups-rest
    port: 8080
    description: REST adapter for Knowi Management API — Groups. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/groups
      name: groups
      description: REST surface for groups.
      operations:
      - method: GET
        name: listgroups
        description: List groups
        call: management-groups.listgroups
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: creategroup
        description: Create group
        call: management-groups.creategroup
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/groups/{groupid}
      name: groups-groupid
      description: REST surface for groups-groupId.
      operations:
      - method: GET
        name: getgroup
        description: Get group
        call: management-groups.getgroup
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updategroup
        description: Update group
        call: management-groups.updategroup
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletegroup
        description: Delete group
        call: management-groups.deletegroup
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{userid}/groups
      name: users-userid-groups
      description: REST surface for users-userId-groups.
      operations:
      - method: GET
        name: listusergroups
        description: List user groups
        call: management-groups.listusergroups
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createusergroup
        description: Create group for user
        call: management-groups.createusergroup
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{userid}/groups/{groupid}
      name: users-userid-groups-groupid
      description: REST surface for users-userId-groups-groupId.
      operations:
      - method: DELETE
        name: removeusergroup
        description: Remove group from user
        call: management-groups.removeusergroup
        with:
          userId: rest.userId
          groupId: rest.groupId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: management-groups-mcp
    port: 9090
    transport: http
    description: MCP adapter for Knowi Management API — Groups. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-groups
      description: List groups
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: management-groups.listgroups
      outputParameters:
      - type: object
        mapping: $.
    - name: create-group
      description: Create group
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: management-groups.creategroup
      outputParameters:
      - type: object
        mapping: $.
    - name: get-group
      description: Get group
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: management-groups.getgroup
      outputParameters:
      - type: object
        mapping: $.
    - name: update-group
      description: Update group
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: management-groups.updategroup
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-group
      description: Delete group
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: management-groups.deletegroup
      outputParameters:
      - type: object
        mapping: $.
    - name: list-user-groups
      description: List user groups
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: management-groups.listusergroups
      outputParameters:
      - type: object
        mapping: $.
    - name: create-group-user
      description: Create group for user
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: management-groups.createusergroup
      outputParameters:
      - type: object
        mapping: $.
    - name: remove-group-user
      description: Remove group from user
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: management-groups.removeusergroup
      with:
        userId: tools.userId
        groupId: tools.groupId
      outputParameters:
      - type: object
        mapping: $.