Skip to content

Assign Library License

Request

Adds a license reference to a given library

Security
bearer-key
Path
orgTokenstringrequired

org UUID (by running Entities - Organization > Get User Organizations) or API Key (from the Mend SCA App: Integrate tab > API Key).

libraryUuidstringrequired

library UUID (get a project's library by running Library - Project > Get Project Libraries.

Bodyapplication/jsonrequired
uuidstring(License UUID)required
Example:"123e4567-e89b-12d3-a456-426655440000"
assignedByUserboolean(Assigned By User)required
licenseReferencesArray of objects(LicenseReferenceRequestDTO)required
POST
/api/v2.0/orgs/{orgToken}/libraries/{libraryUuid}/licenses
{ "uuid": "123e4567-e89b-12d3-a456-426655440000", "assignedByUser": true, "licenseReferences": [ {} ] }

Responses

OK

Bodyapplication/json
supportTokenstring(Support Token)
Example:"1171c60d"
retValobject(LibraryLicenseDTO)
Response
{ "supportToken": "1171c60d", "retVal": { "uuid": "123e4567-e89b-12d3-a456-426655440000", "name": "MIT", "assignedByUser": true, "licenseReferences": [] } }