Skip to content

Edit Custom License

Request

Only users with Library Manager permission can edit a custom license.

Security
bearerAuth
Path
licenseIdinteger, (int64)required

ID of License

Example:1
Bodyapplication/jsonrequired
namestring, [ 0 .. 127 ] characters

name

Example:"General Public License"
shortNamestring, [ 0 .. 255 ] characters

shortName

Example:"GPL"
licenseTextstring, [ 0 .. 16777215 ] characters

licenseText

Example:"License Text"
prioritystringP1|P2|P3

priority

Enum:"P1""P2""P3"
Example:"E.g. P1 | P2 | P3 | default: P3"
urlstring, [ 0 .. 2400 ] characters(^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2...

url

Example:"https://abc.xyz"
descriptionstring, [ 0 .. 65535 ] characters

description

Example:"License description"
familyNamestring

familyName

Example:"License family"
externalIdstring

externalId

Example:"External License Id Eg: 156"
curl -i -X PUT \
  https://codeinsightapi.redocly.app/_mock/swagger/licenses/1 \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "General Public License",
    "shortName": "GPL",
    "licenseText": "License Text",
    "priority": "E.g. P1 | P2 | P3 | default: P3",
    "url": "https://abc.xyz",
    "description": "License description",
    "familyName": "License family",
    "externalId": "External License Id Eg: 156"
  }'

Responses

OK