Create a license set
POST
header
AuthorizationBearer <token>A personal or service access token, sent as Authorization: Bearer <token>. See access tokens.
namespace*stringThe namespace id.
application/json- body
A license set to create or update.
name*stringA display name.
description*stringA free-form description.
licenses*array<string>SPDX license ids. Duplicates, ignoring case, and empty entries are dropped.
The new license set.
application/json- response
A named group of licenses that license rules refer to by id.
id*stringThe license set id.
name*stringA display name.
description?stringA 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 POST 'https://eu-sov-1.bytesafecloud.eu/v1/my-namespace-id/license-sets' \ -H 'Content-Type: application/json' \ -d '{ "description": "Licenses that require sharing derived work.", "licenses": [ "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" ]}