fossa_set_package_label_assignments
Reconcile label assignments for a package version at a scope to an exact desired set, removing any labels not specified. Use for precise label state management in FOSSA.
Instructions
Replace a package's label assignments at one scope with an exact desired state.
WRITES TO FOSSA. Requires FOSSA_ALLOW_WRITES=true and FOSSA_ALLOW_DESTRUCTIVE=true.
This is a reconcile, not an addition: FOSSA removes every existing
assignment for this package and scope that new_label_ids does not mention.
Read the current state with fossa_list_package_label_assignments first, or
labels applied by someone else will disappear. new_label_ids maps a
package version — or the literal all for assignments covering every
version — to the list of label ids that should be assigned for it; an empty
list clears that version. Use fossa_assign_package_labels when the intent is
to add without removing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | ||
| scope_id | No | ||
| package_id | Yes | ||
| new_label_ids | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||