WSO2 · Capability

WSO2 API Manager - Admin — Organizations

WSO2 API Manager - Admin — Organizations. 5 operations. Lead operation: Get all registered Organizations. Self-contained Naftiko capability covering one Wso2 business surface.

Run with Naftiko Wso2Organizations

What You Can Do

GET
Get — Get all registered Organizations
/v1/organizations
POST
Post — Add an Organizations
/v1/organizations
GET
Get — Get an Organization
/v1/organizations/{organizationid}
PUT
Put — Update an Organization
/v1/organizations/{organizationid}
DELETE
Delete — Delete an Organization
/v1/organizations/{organizationid}

MCP Tools

get-all-registered-organizations

Get all registered Organizations

read-only idempotent
add-organizations

Add an Organizations

get-organization

Get an Organization

read-only idempotent
update-organization

Update an Organization

idempotent
delete-organization

Delete an Organization

idempotent

Capability Spec

admin-organizations.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WSO2 API Manager - Admin — Organizations
  description: 'WSO2 API Manager - Admin — Organizations. 5 operations. Lead operation: Get all registered Organizations.
    Self-contained Naftiko capability covering one Wso2 business surface.'
  tags:
  - Wso2
  - Organizations
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WSO2_API_KEY: WSO2_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-organizations
    baseUri: https://apis.wso2.com/api/am/admin/v4
    description: WSO2 API Manager - Admin — Organizations business capability. Self-contained, no shared references.
    resources:
    - name: organizations
      path: /organizations
      operations:
      - name: get
        method: GET
        description: Get all registered Organizations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: post
        method: POST
        description: Add an Organizations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: organizations-organizationId
      path: /organizations/{organizationId}
      operations:
      - name: get
        method: GET
        description: Get an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: put
        method: PUT
        description: Update an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: delete
        method: DELETE
        description: Delete an Organization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.WSO2_API_KEY}}'
  exposes:
  - type: rest
    namespace: admin-organizations-rest
    port: 8080
    description: REST adapter for WSO2 API Manager - Admin — Organizations. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/organizations
      name: organizations
      description: REST surface for organizations.
      operations:
      - method: GET
        name: get
        description: Get all registered Organizations
        call: admin-organizations.get
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Add an Organizations
        call: admin-organizations.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/organizations/{organizationid}
      name: organizations-organizationid
      description: REST surface for organizations-organizationId.
      operations:
      - method: GET
        name: get
        description: Get an Organization
        call: admin-organizations.get
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: put
        description: Update an Organization
        call: admin-organizations.put
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: delete
        description: Delete an Organization
        call: admin-organizations.delete
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-organizations-mcp
    port: 9090
    transport: http
    description: MCP adapter for WSO2 API Manager - Admin — Organizations. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-all-registered-organizations
      description: Get all registered Organizations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-organizations.get
      outputParameters:
      - type: object
        mapping: $.
    - name: add-organizations
      description: Add an Organizations
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-organizations.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-organization
      description: Get an Organization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-organizations.get
      outputParameters:
      - type: object
        mapping: $.
    - name: update-organization
      description: Update an Organization
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: admin-organizations.put
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-organization
      description: Delete an Organization
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: admin-organizations.delete
      outputParameters:
      - type: object
        mapping: $.