Tidelift Licenses API
The Licenses API from Tidelift — 5 operation(s) for licenses.
The Licenses API from Tidelift — 5 operation(s) for licenses.
openapi: 3.0.0
info:
version: 1.2.1
title: Tidelift External Alignments Licenses API
x-logo:
url: /docs/assets/tidelift_logo.png
altText: Tidelift
license:
name: Proprietary
servers:
- url: https://api.tidelift.com/external-api
security:
- BearerAuth:
- user
- project
- organization
tags:
- name: Licenses
paths:
/v1/{org_name}/catalogs/{catalog_name}/configure-standards/allowed-licenses/add:
put:
x-tidelift-api-meta:
product-area: management-api
access-level: small
visibility: public
tags:
- Licenses
security:
- BearerAuth:
- user
- project
- organization
operationId: configureAllowedLicensesAdd
x-rails-controller: catalog_standards/allowed_licenses#add_licenses
summary: Add SPDX licenses to the catalog's license policies.
description: Add SPDX licenses to the catalog's license policies.
parameters:
- $ref: '#/components/parameters/orgNameParam'
- $ref: '#/components/parameters/catalogNameParam'
- name: policy_status
in: query
required: true
description: Specify how releases should be used by projects aligning to this catalog. - 'approved' or 'denied'
schema:
type: string
enum:
- approved
- denied
- name: generate_tasks
in: query
required: true
description: Specify whether tasks should be generated for new violations for the licenses
schema:
type: boolean
- name: licenses
in: query
required: true
description: List of individual licenses in SPDX format to add (note that SPDX expressions are not allowed)
schema:
type: array
items:
type: string
responses:
'200':
description: License(s) added to list
content:
application/json:
schema:
$ref: '#/components/schemas/LicensingCatalogRule'
'400':
description: Invalid request, Invalid parameters, Invalid record
'403':
description: 403 Forbidden
'404':
description: Catalog not found
/v1/{org_name}/catalogs/{catalog_name}/configure-standards/allowed-licenses/remove:
put:
x-tidelift-api-meta:
product-area: management-api
access-level: small
visibility: public
tags:
- Licenses
security:
- BearerAuth:
- user
- project
- organization
operationId: configureAllowedLicensesRemove
x-rails-controller: catalog_standards/allowed_licenses#remove_licenses
summary: Remove SPDX licenses from the catalog's license policies.
description: Remove SPDX licenses from the catalog's license policies.
parameters:
- $ref: '#/components/parameters/orgNameParam'
- $ref: '#/components/parameters/catalogNameParam'
- name: licenses
in: query
required: true
description: List of individual licenses in SPDX format to remove (note that SPDX expressions are not allowed)
schema:
type: array
items:
type: string
responses:
'200':
description: License(s) removed from list
content:
application/json:
schema:
$ref: '#/components/schemas/LicensingCatalogRule'
'400':
description: Invalid request, Invalid parameters, Invalid record
'403':
description: 403 Forbidden
'404':
description: Catalog not found
/v1/{org_name}/catalogs/{catalog_name}/configure-standards/allowed-licenses:
get:
x-tidelift-api-meta:
product-area: management-api
access-level: small
visibility: public
tags:
- Licenses
security:
- BearerAuth:
- user
- project
- organization
operationId: showAllowedLicenses
x-rails-controller: catalog_standards/allowed_licenses#show
summary: Show the catalog's license policies
description: Show the catalog's license policies.
parameters:
- $ref: '#/components/parameters/orgNameParam'
- $ref: '#/components/parameters/catalogNameParam'
responses:
'200':
description: Licenses in this catalog's license policies
content:
application/json:
schema:
$ref: '#/components/schemas/LicensingCatalogRule'
'403':
description: 403 Forbidden
'404':
description: Catalog not found
/v1/{org_name}/licenses/{package_platform}/{package_name}:
post:
x-tidelift-api-meta:
product-area: management-api
access-level: small
visibility: public
tags:
- Licenses
security:
- BearerAuth:
- user
- organization
operationId: createPackageLicense
x-rails-controller: licenses#create
summary: Creates or updates a researched license for a given package.
description: Creates or updates a researched license for a given package.
parameters:
- $ref: '#/components/parameters/orgNameParam'
- $ref: '#/components/parameters/packagePlatformParam'
- $ref: '#/components/parameters/packageNamePathParam'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateLicenseRequest'
responses:
'200':
description: Package license successfully created or updated for organization
content:
application/json:
schema:
$ref: '#/components/schemas/CreateLicenseResponse'
'400':
description: One of the required parameters is missing
'403':
description: The api-key used is not authorized to perform the action
'404':
description: The package could not be found
'422':
description: The license is invalid
delete:
x-tidelift-api-meta:
product-area: management-api
access-level: small
visibility: public
tags:
- Licenses
security:
- BearerAuth:
- user
- organization
operationId: deletePackageLicense
x-rails-controller: licenses#delete
summary: Deletes a researched license for a given package.
description: Creates or updates a researched license for a given package.
parameters:
- $ref: '#/components/parameters/orgNameParam'
- $ref: '#/components/parameters/packagePlatformParam'
- $ref: '#/components/parameters/packageNamePathParam'
responses:
'204':
description: Package license successfully deleted from organization
'400':
description: One of the required parameters is missing
'403':
description: The api-key used is not authorized to perform the action
'404':
description: The package or license was not found
/v1/{org_name}/licenses/{package_platform}/{package_name}/{version}:
post:
x-tidelift-api-meta:
product-area: management-api
access-level: small
visibility: public
tags:
- Licenses
security:
- BearerAuth:
- user
- organization
operationId: createReleaseLicense
x-rails-controller: licenses#create
summary: Creates or updates a researched license for a given release.
description: Creates or updates a researched license for a given release.
parameters:
- $ref: '#/components/parameters/orgNameParam'
- $ref: '#/components/parameters/packagePlatformParam'
- $ref: '#/components/parameters/packageNamePathParam'
- $ref: '#/components/parameters/versionPathParam'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateLicenseRequest'
responses:
'200':
description: Release license successfully created or updated for organization
content:
application/json:
schema:
$ref: '#/components/schemas/CreateLicenseResponse'
'400':
description: One of the required parameters is missing
'403':
description: The api-key used is not authorized to perform the action
'404':
description: The package or the release could not be found
'422':
description: The license is invalid
delete:
x-tidelift-api-meta:
product-area: management-api
access-level: small
visibility: public
tags:
- Licenses
security:
- BearerAuth:
- user
- organization
operationId: deleteReleaseLicense
x-rails-controller: licenses#delete
summary: Deletes a researched license for a given release.
description: Creates or updates a researched license for a given release.
parameters:
- $ref: '#/components/parameters/orgNameParam'
- $ref: '#/components/parameters/packagePlatformParam'
- $ref: '#/components/parameters/packageNamePathParam'
- $ref: '#/components/parameters/versionPathParam'
responses:
'204':
description: Package license successfully deleted from organization
'400':
description: One of the required parameters is missing
'403':
description: The api-key used is not authorized to perform the action
'404':
description: The package, release, or license was not found
components:
parameters:
orgNameParam:
in: path
name: org_name
required: true
schema:
type: string
example: My-Company
description: The name of the Organization.
versionPathParam:
name: version
in: path
description: The version of the package to change the license of.
required: true
schema:
type: string
catalogNameParam:
in: path
name: catalog_name
required: true
schema:
type: string
example: default
description: The name of the Catalog.
packageNamePathParam:
name: package_name
in: path
description: The name of the package to change the license of.
required: true
schema:
type: string
packagePlatformParam:
in: path
name: package_platform
required: true
schema:
type: string
example: rubygems
description: The platform of the package.
schemas:
LicensingCatalogRule:
type: object
properties:
created_at:
type: string
format: date-time
updated_at:
type: string
format: date-time
value:
type: object
additionalProperties:
type: object
properties:
policy_status:
type: string
generate_tasks:
type: boolean
reference_url:
type: string
example:
MIT:
policy_status: approved
generate_tasks: true
reference_url: https://github.com/tidelift/project1/blob/main/LICENSE.md
CreateLicenseRequest:
type: object
properties:
license:
type: string
description: The name of the SPDX license. (note that SPDX license expressions are not valid)
notes:
type: string
description: The notes to leave for why the license was changed.
CreateLicenseResponse:
type: object
properties:
package_id:
type: number
name:
type: string
platform:
type: string
license:
type: string
notes:
type: string
version:
type: string
securitySchemes:
BearerAuth:
type: http
scheme: bearer