Flag Bulk Job
Background bulk flag status moves
List bulk flag jobs
The tenant's jobs, newest first.
Move every flag matching a filter as a background job
Snapshots the oldest min(expectedCount, 2000) flags matching filter, whose single source status is filter['data.status'].eq, and moves them to targetStatus in the background in chunks. Returns 202 with the RUNNING job; poll GET /flags/bulk-jobs/{id}. A flag whose status changed after the snapshot is not moved and is counted as skipped. The transition and the caller's permission for it are checked once; the list's needsVerification and internal-flag-type visibility rules are applied to the filter. One running job per tenant.
Get the tenant's running bulk flag job
200 with the running job, or 204 when there is none.
Get a bulk flag job
The job; skippedFlagIds are included once it has finished.