Get Package Label Assignments

gethttps://app.fossa.com/api/package-label-assignments

Get Package Label assignments for the organization, optionally filtered. All filters are optional. When no filters are supplied, every Package Label assignment in the organization is returned (subject to the caller's project view permissions). Note - This endpoint is not available for organizations on the Free plan.

Query parameters

filters[packageId]string
filters[packageVersion]string
filters[scope]enum
orgprojectrevision
filters[scopeId]string
filters[shouldIncludePackageWideLabels]boolean
filters[shouldIncludeRevisionScopedLabels]boolean

Responses

200OK
packageLabelAssignmentsobject[]required

The matching package label assignments, each including the nested label that was assigned.

400Bad request
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

403Forbidden
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

500Internal server error
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

Try this endpoint

Build a request and run it against app.fossa.com.

Bearer

Stored in this browser for 24 hours. Try It uses a docs proxy for CORS and does not store tokens server-side.

GET https://app.fossa.com/api/package-label-assignments
curl --request GET \  --url 'https://app.fossa.com/api/package-label-assignments' \  --header 'accept: application/json'

Real request. Mutating methods can change data.

Click Try It to run a request and see the response here.

Query params

filters[packageId]string
filters[packageVersion]string
filters[scope]enum
filters[scopeId]string
filters[shouldIncludePackageWideLabels]boolean
filters[shouldIncludeRevisionScopedLabels]boolean