Sonatype · Capability

Sonatype Lifecycle Public REST API — User Token Configuration

Sonatype Lifecycle Public REST API — User Token Configuration. 3 operations. Lead operation: User Token Configuration. Self-contained Naftiko capability covering one Sonatype business surface.

Run with Naftiko SonatypeUser Token Configuration

What You Can Do

DELETE
Resetconfiguration — Use this method to reset user token configuration properties to system defaults. Returns the current configuration after reset.
/v1/api/v2/config/usertokens
GET
Getconfiguration7 — Use this method to retrieve user token configuration.
/v1/api/v2/config/usertokens
PUT
Updateconfiguration — Use this method to update user token configuration. Null values are ignored (no change). Returns the current configuration after applying changes.
/v1/api/v2/config/usertokens

MCP Tools

use-this-method-reset-user

Use this method to reset user token configuration properties to system defaults. Returns the current configuration after reset.

idempotent
use-this-method-retrieve-user

Use this method to retrieve user token configuration.

read-only idempotent
use-this-method-update-user

Use this method to update user token configuration. Null values are ignored (no change). Returns the current configuration after applying changes.

idempotent

Capability Spec

lifecycle-user-token-configuration.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — User Token Configuration
  description: 'Sonatype Lifecycle Public REST API — User Token Configuration. 3 operations. Lead operation: User Token Configuration.
    Self-contained Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - User Token Configuration
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_API_KEY: SONATYPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: lifecycle-user-token-configuration
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — User Token Configuration business capability. Self-contained, no shared
      references.
    resources:
    - name: api-v2-config-userTokens
      path: /api/v2/config/userTokens
      operations:
      - name: resetconfiguration
        method: DELETE
        description: Use this method to reset user token configuration properties to system defaults. Returns the current
          configuration after reset.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: property
          in: query
          type: array
      - name: getconfiguration7
        method: GET
        description: Use this method to retrieve user token configuration.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateconfiguration
        method: PUT
        description: Use this method to update user token configuration. Null values are ignored (no change). Returns the
          current configuration after applying changes.
        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.SONATYPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: lifecycle-user-token-configuration-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — User Token Configuration. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/config/usertokens
      name: api-v2-config-usertokens
      description: REST surface for api-v2-config-userTokens.
      operations:
      - method: DELETE
        name: resetconfiguration
        description: Use this method to reset user token configuration properties to system defaults. Returns the current
          configuration after reset.
        call: lifecycle-user-token-configuration.resetconfiguration
        with:
          property: rest.property
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getconfiguration7
        description: Use this method to retrieve user token configuration.
        call: lifecycle-user-token-configuration.getconfiguration7
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateconfiguration
        description: Use this method to update user token configuration. Null values are ignored (no change). Returns the
          current configuration after applying changes.
        call: lifecycle-user-token-configuration.updateconfiguration
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-user-token-configuration-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — User Token Configuration. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: use-this-method-reset-user
      description: Use this method to reset user token configuration properties to system defaults. Returns the current configuration
        after reset.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: lifecycle-user-token-configuration.resetconfiguration
      with:
        property: tools.property
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-retrieve-user
      description: Use this method to retrieve user token configuration.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-user-token-configuration.getconfiguration7
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-update-user
      description: Use this method to update user token configuration. Null values are ignored (no change). Returns the current
        configuration after applying changes.
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: lifecycle-user-token-configuration.updateconfiguration
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.