Unleash · Capability

Unleash Admin API — Maintenance

Unleash Admin API — Maintenance. 2 operations. Lead operation: Enabled/disabled Maintenance Mode. Self-contained Naftiko capability covering one Unleash business surface.

Run with Naftiko UnleashMaintenance

What You Can Do

POST
Togglemaintenance — Enabled/disabled Maintenance Mode
/v1/api/admin/maintenance
GET
Getmaintenance — Get Maintenance Mode Status
/v1/api/admin/maintenance

MCP Tools

enabled-disabled-maintenance-mode

Enabled/disabled Maintenance Mode

get-maintenance-mode-status

Get Maintenance Mode Status

read-only idempotent

Capability Spec

admin-maintenance.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Unleash Admin API — Maintenance
  description: 'Unleash Admin API — Maintenance. 2 operations. Lead operation: Enabled/disabled Maintenance Mode. Self-contained
    Naftiko capability covering one Unleash business surface.'
  tags:
  - Unleash
  - Maintenance
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNLEASH_API_KEY: UNLEASH_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-maintenance
    baseUri: https://app.unleash-instance.example.com
    description: Unleash Admin API — Maintenance business capability. Self-contained, no shared references.
    resources:
    - name: api-admin-maintenance
      path: /api/admin/maintenance
      operations:
      - name: togglemaintenance
        method: POST
        description: Enabled/disabled Maintenance Mode
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: getmaintenance
        method: GET
        description: Get Maintenance Mode Status
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.UNLEASH_API_KEY}}'
  exposes:
  - type: rest
    namespace: admin-maintenance-rest
    port: 8080
    description: REST adapter for Unleash Admin API — Maintenance. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/admin/maintenance
      name: api-admin-maintenance
      description: REST surface for api-admin-maintenance.
      operations:
      - method: POST
        name: togglemaintenance
        description: Enabled/disabled Maintenance Mode
        call: admin-maintenance.togglemaintenance
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getmaintenance
        description: Get Maintenance Mode Status
        call: admin-maintenance.getmaintenance
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-maintenance-mcp
    port: 9090
    transport: http
    description: MCP adapter for Unleash Admin API — Maintenance. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: enabled-disabled-maintenance-mode
      description: Enabled/disabled Maintenance Mode
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: admin-maintenance.togglemaintenance
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-maintenance-mode-status
      description: Get Maintenance Mode Status
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-maintenance.getmaintenance
      outputParameters:
      - type: object
        mapping: $.