Sonatype · Capability

Sonatype Lifecycle Public REST API — Applications

Sonatype Lifecycle Public REST API — Applications. 8 operations. Lead operation: Applications. Self-contained Naftiko capability covering one Sonatype business surface.

Run with Naftiko SonatypeApplications

What You Can Do

GET
Getapplications — Use this method to retrieve the application details for the applicationId(s) provided.
/v1/api/v2/applications
POST
Addapplication — Use this method to create an application under an organization. Use the Organization REST API to obtain organizationId.
/v1/api/v2/applications
GET
Getapplicationsbyorganizationid — Use this method to retrieve application details for all applications under the organizationId provided.
/v1/api/v2/applications/organization/{organizationid}
DELETE
Deleteapplication — Use this method to permanently delete an existing application and all data associated with it. This action cannot be un-done. Before deleting, confirm that the application being deleted does not impact any integrations that could depend on
/v1/api/v2/applications/{applicationid}
GET
Getapplication — Use this method to retrieve the application details, by providing the applicationId.
/v1/api/v2/applications/{applicationid}
PUT
Updateapplication — Use this method to update the application name, application tags or the contact user name for an existing application by providing the applicationId.
/v1/api/v2/applications/{applicationid}
POST
Moveapplication — Use this method to move an application from one organization to another.
/v1/api/v2/applications/{applicationid}/move/organization/{organizationid}
POST
Cloneapplication — Use this method to clone an existing application.
/v1/api/v2/applications/{sourceapplicationid}/clone

MCP Tools

use-this-method-retrieve-application

Use this method to retrieve the application details for the applicationId(s) provided.

read-only idempotent
use-this-method-create-application

Use this method to create an application under an organization. Use the Organization REST API to obtain organizationId.

use-this-method-retrieve-application-2

Use this method to retrieve application details for all applications under the organizationId provided.

read-only idempotent
use-this-method-permanently-delete

Use this method to permanently delete an existing application and all data associated with it. This action cannot be un-done. Before deleting, confirm that the application being deleted does not impact any integrations that could depend on

idempotent
use-this-method-retrieve-application-3

Use this method to retrieve the application details, by providing the applicationId.

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

Use this method to update the application name, application tags or the contact user name for an existing application by providing the applicationId.

idempotent
use-this-method-move-application

Use this method to move an application from one organization to another.

use-this-method-clone-existing

Use this method to clone an existing application.

Capability Spec

lifecycle-applications.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — Applications
  description: 'Sonatype Lifecycle Public REST API — Applications. 8 operations. Lead operation: Applications. Self-contained
    Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - Applications
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_API_KEY: SONATYPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: lifecycle-applications
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — Applications business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-applications
      path: /api/v2/applications
      operations:
      - name: getapplications
        method: GET
        description: Use this method to retrieve the application details for the applicationId(s) provided.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: publicId
          in: query
          type: array
          description: Enter the applicationId.
        - name: includeCategories
          in: query
          type: boolean
          description: Set this parameter to `true` to obtain the application tags (application categories) in the response.
      - name: addapplication
        method: POST
        description: Use this method to create an application under an organization. Use the Organization REST API to obtain
          organizationId.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-v2-applications-organization-organizationId
      path: /api/v2/applications/organization/{organizationId}
      operations:
      - name: getapplicationsbyorganizationid
        method: GET
        description: Use this method to retrieve application details for all applications under the organizationId provided.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: organizationId
          in: path
          type: string
          description: Enter the organizationId.
          required: true
    - name: api-v2-applications-applicationId
      path: /api/v2/applications/{applicationId}
      operations:
      - name: deleteapplication
        method: DELETE
        description: 'Use this method to permanently delete an existing application and all data associated with it. This
          action cannot be un-done. Before deleting, confirm that the application being deleted does not impact any integrations
          that could depend on '
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: applicationId
          in: path
          type: string
          description: Enter the applicationId to be deleted.
          required: true
      - name: getapplication
        method: GET
        description: Use this method to retrieve the application details, by providing the applicationId.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: applicationId
          in: path
          type: string
          description: Enter the applicationId.
          required: true
      - name: updateapplication
        method: PUT
        description: 'Use this method to update the application name, application tags or the contact user name for an existing
          application by providing the applicationId. '
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: applicationId
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: api-v2-applications-applicationId-move-organization-organizationId
      path: /api/v2/applications/{applicationId}/move/organization/{organizationId}
      operations:
      - name: moveapplication
        method: POST
        description: Use this method to move an application from one organization to another.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: applicationId
          in: path
          type: string
          description: Enter the applicationId of the application to be moved.
          required: true
        - name: organizationId
          in: path
          type: string
          description: Enter the organizationId of the destination organization.
          required: true
    - name: api-v2-applications-sourceApplicationId-clone
      path: /api/v2/applications/{sourceApplicationId}/clone
      operations:
      - name: cloneapplication
        method: POST
        description: Use this method to clone an existing application.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: sourceApplicationId
          in: path
          type: string
          description: Enter the applicationId for the application to be cloned.
          required: true
        - name: clonedApplicationName
          in: query
          type: string
          description: Enter the application name for the new cloned application.
        - name: clonedApplicationPublicId
          in: query
          type: string
          description: Enter the applicationPublicId for the cloned application.
    authentication:
      type: bearer
      token: '{{env.SONATYPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: lifecycle-applications-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — Applications. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/applications
      name: api-v2-applications
      description: REST surface for api-v2-applications.
      operations:
      - method: GET
        name: getapplications
        description: Use this method to retrieve the application details for the applicationId(s) provided.
        call: lifecycle-applications.getapplications
        with:
          publicId: rest.publicId
          includeCategories: rest.includeCategories
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addapplication
        description: Use this method to create an application under an organization. Use the Organization REST API to obtain
          organizationId.
        call: lifecycle-applications.addapplication
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/applications/organization/{organizationid}
      name: api-v2-applications-organization-organizationid
      description: REST surface for api-v2-applications-organization-organizationId.
      operations:
      - method: GET
        name: getapplicationsbyorganizationid
        description: Use this method to retrieve application details for all applications under the organizationId provided.
        call: lifecycle-applications.getapplicationsbyorganizationid
        with:
          organizationId: rest.organizationId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/applications/{applicationid}
      name: api-v2-applications-applicationid
      description: REST surface for api-v2-applications-applicationId.
      operations:
      - method: DELETE
        name: deleteapplication
        description: 'Use this method to permanently delete an existing application and all data associated with it. This
          action cannot be un-done. Before deleting, confirm that the application being deleted does not impact any integrations
          that could depend on '
        call: lifecycle-applications.deleteapplication
        with:
          applicationId: rest.applicationId
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getapplication
        description: Use this method to retrieve the application details, by providing the applicationId.
        call: lifecycle-applications.getapplication
        with:
          applicationId: rest.applicationId
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateapplication
        description: 'Use this method to update the application name, application tags or the contact user name for an existing
          application by providing the applicationId. '
        call: lifecycle-applications.updateapplication
        with:
          applicationId: rest.applicationId
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/applications/{applicationid}/move/organization/{organizationid}
      name: api-v2-applications-applicationid-move-organization-organizationid
      description: REST surface for api-v2-applications-applicationId-move-organization-organizationId.
      operations:
      - method: POST
        name: moveapplication
        description: Use this method to move an application from one organization to another.
        call: lifecycle-applications.moveapplication
        with:
          applicationId: rest.applicationId
          organizationId: rest.organizationId
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/applications/{sourceapplicationid}/clone
      name: api-v2-applications-sourceapplicationid-clone
      description: REST surface for api-v2-applications-sourceApplicationId-clone.
      operations:
      - method: POST
        name: cloneapplication
        description: Use this method to clone an existing application.
        call: lifecycle-applications.cloneapplication
        with:
          sourceApplicationId: rest.sourceApplicationId
          clonedApplicationName: rest.clonedApplicationName
          clonedApplicationPublicId: rest.clonedApplicationPublicId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-applications-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — Applications. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: use-this-method-retrieve-application
      description: Use this method to retrieve the application details for the applicationId(s) provided.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-applications.getapplications
      with:
        publicId: tools.publicId
        includeCategories: tools.includeCategories
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-create-application
      description: Use this method to create an application under an organization. Use the Organization REST API to obtain
        organizationId.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lifecycle-applications.addapplication
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-retrieve-application-2
      description: Use this method to retrieve application details for all applications under the organizationId provided.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-applications.getapplicationsbyorganizationid
      with:
        organizationId: tools.organizationId
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-permanently-delete
      description: 'Use this method to permanently delete an existing application and all data associated with it. This action
        cannot be un-done. Before deleting, confirm that the application being deleted does not impact any integrations that
        could depend on '
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: lifecycle-applications.deleteapplication
      with:
        applicationId: tools.applicationId
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-retrieve-application-3
      description: Use this method to retrieve the application details, by providing the applicationId.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-applications.getapplication
      with:
        applicationId: tools.applicationId
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-update-application
      description: 'Use this method to update the application name, application tags or the contact user name for an existing
        application by providing the applicationId. '
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: lifecycle-applications.updateapplication
      with:
        applicationId: tools.applicationId
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-move-application
      description: Use this method to move an application from one organization to another.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lifecycle-applications.moveapplication
      with:
        applicationId: tools.applicationId
        organizationId: tools.organizationId
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-clone-existing
      description: Use this method to clone an existing application.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lifecycle-applications.cloneapplication
      with:
        sourceApplicationId: tools.sourceApplicationId
        clonedApplicationName: tools.clonedApplicationName
        clonedApplicationPublicId: tools.clonedApplicationPublicId
      outputParameters:
      - type: object
        mapping: $.