PUT/v1/license

Creates a new custom license

Requires permission SYSTEM_CONFIGURATION or SYSTEM_CONFIGURATION_CREATE

10 body fields
isDeprecatedLicenseIdbooleanoptional
Whether the licenseId has been deprecated by SPDX
isFsfLibrebooleanoptional
Whether the license is FSF libre
isOsiApprovedbooleanoptional
Whether the license is approved by the OSI
licenseCommentsstringoptional
Comments about the license
licenseIdstringrequired
Identifier of the license
licenseTextstringoptional
Full license text
namestringrequired
Display name of the license
seeAlsoarray<string>optional
Additional URLs with information about the license
standardLicenseHeaderstringoptional
Standard license header typically added to the top of source code
standardLicenseTemplatestringoptional
Standard license template used to derive the license text

3 status codes
201The created license
isCustomLicensebooleanrequired
Whether the license is a custom license created by a user
isDeprecatedLicenseIdbooleanrequired
Whether the licenseId has been deprecated by SPDX
isFsfLibrebooleanrequired
Whether the license is FSF libre
isOsiApprovedbooleanrequired
Whether the license is approved by the OSI
licenseCommentsstringoptional
Comments about the license
licenseGroupsarray<object>required
License groups the license belongs to
licenseIdstringrequired
Identifier of the license
licenseTextstringoptional
Full license text
namestringrequired
Display name of the license
seeAlsoarray<string>optional
Additional URLs with information about the license
standardLicenseHeaderstringoptional
Standard license header typically added to the top of source code
standardLicenseTemplatestringoptional
Standard license template used to derive the license text
uuidstringrequired
UUID of the license
401Unauthorized
409A license with the specified ID already exists.

Error handling

A 401 is returned: Unauthorized. A 409 is returned: A license with the specified ID already exists.