/package-label-assignments/bulk

Assign a single Package Label to multiple packages at once.

Note - This endpoint is not available for organizations on the Free plan.

Body Params
packageLocators
array of strings
required
length ≥ 1

Array of revision locators to assign the label to. Must include the version (e.g., 'npm+lodash$4.17.21').

packageLocators*
integer
required

The ID of the label to assign to all packages.

string
enum
required

The scope of the package label assignment.

Allowed:
string

The ID of the scope to assign labels to. Required if scope is 'project' or 'revision'.

boolean
Defaults to true

If true, labels will apply to the specific versions provided in the packageLocators. If false, labels will apply to all versions of the packages (ignoring the version part of the locator). Defaults to true.

Responses

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json