Sonatype License Legal Metadata Template API

Use this REST API to manage and customize templates for the license legal metadata generated in HTML format.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Open Source Stewardship BC-4200.60

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v2/licenseLegalMetadata/report-template List license legal metadata templates · Get all attribution report templates #
Ask an LLM
“Which templates are available for license legal metadata reports?”
“Can I see all the report templates configured for my organization?”
Tell an agent
List all license legal metadata templates.
Show every template used for license attribution reports.
POST /api/v2/licenseLegalMetadata/report-template Create or update a license legal metadata template · Save attribution report template #
Ask an LLM
“How do I add a custom template for license legal metadata reports?”
“Can I include the standard license texts and an appendix in a template?”
Tell an agent
Save a license legal metadata template named {templateName}.
Create a template {templateName} with header {header} and footer {footer}.
DELETE /api/v2/licenseLegalMetadata/report-template/{id} Delete a license legal metadata template · Delete attribution report template #
Ask an LLM
“How do I remove a license legal metadata template?”
“Can I delete a template I no longer use?”
Tell an agent destructive · confirm first
Delete license legal metadata template {id}.
Remove the license attribution template {id}.
GET /api/v2/licenseLegalMetadata/report-template/{id} Get a license legal metadata template · Get attribution report template by id #
Ask an LLM
“What does a specific license legal metadata template contain?”
“Can I fetch one template by its ID?”
Tell an agent
Get license legal metadata template {id}.
Show the license attribution template {id}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sonatype:sonatype-license-legal-metadata-template-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sonatype-license-legal-metadata-template-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonatype License Legal Metadata Template API
  version: '1.0'
  description: 'Operations tagged License Legal Metadata Template across 2 of this provider''s published API definitions: sonatype-lifecycle-openapi.yml, sonatype-iq-openapi.yml. Each path carries the servers of the definition it was published in.'
security:
- BasicAuth: []
  BearerAuth: []
tags:
- description: Use this REST API to manage and customize templates for the license legal metadata generated in HTML format.
  name: License Legal Metadata Template
paths:
  /api/v2/licenseLegalMetadata/report-template:
    get:
      description: 'Use this method to retrieve templates for all reports.


        Permissions required: Review Legal Obligations For Components Licenses for the root organization'
      operationId: getAllAttributionReportTemplates
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/AttributionReportTemplateDTO'
                type: array
          description: The response contains the stored template details for all reports. For each template:<ul><li>`id` is the template id.</li><li>`templateName` indicates the name of the stored template.</li><li>`documentTitle` is the title that is displayed at the top of the report.</li><li>`header` is the text that will be displayed above the `documentTitle`.</li><li>`footer` is the text that will be displayed at the bottom of the report.<li><li>`includeTableOfContents` is `true` if a table of contents containing links to the components and their licenses will be added to the report.<li>`includeAppendix` is `true` if standard license text will be grouped in the report appendix.</li><li>`includeStandardLicenseTexts` is `true` if the standard license text will be displayed for components with no license files.</li><li>`includeSonatypeSpecialLicenses` is `true` if Sonatype Special Licenses (e.g. Generic-Copyleft-Clause, Generic-Liberal-Clause, See-License-Clause, Identity-Clause etc.) will be included in the report.</li><li>`lastUpdatedAt` indicates the time the template was last updated.</li><li>`includeInnerSource` is `true` if InnerSource components will be included in the report.</li></ul>
      tags:
      - License Legal Metadata Template
      summary: Get all attribution report templates
      x-summary-source: derived
    post:
      description: 'Use this method to create or update a template.


        Permissions required: Review Legal Obligations For Components Licenses for the root organization'
      operationId: saveAttributionReportTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AttributionReportTemplateDTO'
        description: Specify the details for the template as:<ul><li>`id` is the template id.</li><li>`templateName` indicates the name of the stored template.</li><li>`documentTitle` is the title that is displayed at the top of the report.</li><li>`header` is the text that will be displayed above the `documentTitle`.</li><li>`footer` is the text that will be displayed at the bottom of the report.<li><li>`includeTableOfContents` is `true` if a table of contents containing links to the components and their licenses will be added to the report.<li>`includeAppendix` is `true` if standard license text will be grouped in the report appendix.</li><li>`includeStandardLicenseTexts` is `true` if the standard license text will be displayed for components with no license files.</li><li>`includeSonatypeSpecialLicenses` is `true` if Sonatype Special Licenses (e.g. Generic-Copyleft-Clause, Generic-Liberal-Clause, See-License-Clause, Identity-Clause etc.) will be included in the report.</li><li>`includeInnerSource` is `true` if InnerSource components will be included in the report.</li></ul>
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttributionReportTemplateDTO'
          description: The response contains the details of the template created or updated.
      tags:
      - License Legal Metadata Template
      summary: Save attribution report template
      x-summary-source: derived
  /api/v2/licenseLegalMetadata/report-template/{id}:
    delete:
      description: 'Use this method to delete an existing template.


        Permissions required: Review Legal Obligations For Components Licenses for the root organization'
      operationId: deleteAttributionReportTemplate
      parameters:
      - description: Enter the template id for the template to be deleted.
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Template deleted successfully.
      tags:
      - License Legal Metadata Template
      summary: Delete attribution report template
      x-summary-source: derived
    get:
      description: 'Use this method to retrieve a template for license legal metadata.


        Permissions required: Review Legal Obligations For Components Licenses for the root organization.'
      operationId: getAttributionReportTemplateById
      parameters:
      - description: Enter the templateId for the report.
        in: path
        name: id
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttributionReportTemplateDTO'
          description: The response contains the stored template corresponding to the `id` provided:<ul><li>`id` is the template id.</li><li>`templateName` indicates the name of the stored template.</li><li>`documentTitle` is the title that is displayed at the top of the report.</li><li>`header` is the text that will be displayed above the `documentTitle`.</li><li>`footer` is the text that will be displayed at the bottom of the report.<li><li>`includeTableOfContents` is `true` if a table of contents containing links to the components and their licenses will be added to the report.<li>`includeAppendix` is `true` if standard license text will be grouped in the report appendix.</li><li>`includeStandardLicenseTexts` is `true` if the standard license text will be displayed for components with no license files.</li><li>`includeSonatypeSpecialLicenses` is `true` if Sonatype Special Licenses (e.g. Generic-Copyleft-Clause, Generic-Liberal-Clause, See-License-Clause, Identity-Clause etc.) will be included in the report.</li><li>`lastUpdatedAt` indicates the time the template was last updated.</li><li>`includeInnerSource` is `true` if InnerSource components will be included in the report.</li></ul>
      tags:
      - License Legal Metadata Template
      summary: Get attribution report template by id
      x-summary-source: derived
components:
  schemas:
    AttributionReportTemplateDTO:
      properties:
        documentTitle:
          type: string
        footer:
          type: string
        header:
          type: string
        id:
          type: string
        includeAppendix:
          type: boolean
        includeInnerSource:
          type: boolean
        includeSonatypeSpecialLicenses:
          type: boolean
        includeStandardLicenseTexts:
          type: boolean
        includeTableOfContents:
          type: boolean
        lastUpdatedAt:
          format: date-time
          type: string
        templateName:
          type: string
      type: object
  securitySchemes:
    BasicAuth:
      scheme: basic
      type: http
    BearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
x-refined-from:
- sonatype-lifecycle-openapi.yml
- sonatype-iq-openapi.yml