Update a license set

PUT
/v1/{namespace}/license-sets/{licenseSet}

Authorization

headerAuthorizationBearer <token>

A personal or service access token, sent as Authorization: Bearer <token>. See access tokens.

Path Parameters

namespace*string

The namespace id.

licenseSet*string

The license set id.

Request Body

application/json
  1. body

A license set to create or update.

name*string

A display name.

description*string

A free-form description.

licenses*array<string>

SPDX license ids. Duplicates, ignoring case, and empty entries are dropped.

Response Body

The updated license set.

application/json
  1. response

A named group of licenses that license rules refer to by id.

id*string

The license set id.

name*string

A display name.

description?string

A free-form description.

licenses*array<string>

SPDX license ids, e.g. MIT or GPL-3.0-only. Packages are matched against them case-insensitively.

curl -X PUT 'https://eu-sov-1.bytesafecloud.eu/v1/my-namespace-id/license-sets/string' \  -H 'Content-Type: application/json' \  -d '{  "description": "Licenses that require sharing derived work.",  "licenses": [    "GPL-2.0-only",    "GPL-3.0-only",    "AGPL-3.0-only"  ],  "name": "Copyleft"}'
{  "id": "8d2e5f71-4a3b-4c9e-b0d6-2f7a1c8e5b93",  "name": "Copyleft",  "description": "Licenses that require derived work to use the same license.",  "licenses": [    "GPL-2.0-only",    "GPL-3.0-only",    "AGPL-3.0-only"  ]}