Update Release Groups Policies

puthttps://app.fossa.com/api/v2/release-groups/policy

Update a policy for one to many release groups.

Query parameters

policyIdnumberrequired

The ID of the policy you want to apply to projects.

idsenum | number[]

The list of IDs for the release groups to update. If "all" is provided, then all release groups that meet the provided filters will have the policy applied. If omitted, the release groups are selected by the supplied filter params (`title`, `latestScan`, `teamId`); at least one filter must then be provided.

titlestring

Filter by release group name.

teamIdstring | number[]

Filter by one or more team IDs. Providing "null" will return all unassigned release groups.

latestScaninteger

Filter by last policy scan within N days.

Responses

200OK
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

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.

PUT https://app.fossa.com/api/v2/release-groups/policy
curl --request PUT \  --url 'https://app.fossa.com/api/v2/release-groups/policy' \  --header 'accept: application/json' \  --header 'authorization: Bearer YOUR_API_TOKEN'

Real request. Mutating methods can change data.

Click Try It to run a request and see the response here.
Enter a Bearer token before running this request.

Query params

policyIdnumberrequired

The ID of the policy you want to apply to projects.

idsstring

The list of IDs for the release groups to update. If "all" is provided, then all release groups that meet the provided filters will have the policy applied. If omitted, the release groups are selected by the supplied filter params (`title`, `latestScan`, `teamId`); at least one filter must then be provided.

titlestring

Filter by release group name.

teamIdstring

Filter by one or more team IDs. Providing "null" will return all unassigned release groups.

latestScaninteger

Filter by last policy scan within N days.