✨ Trigger Dimension value-counts backfill
Trigger a Dimension label-distribution value-counts backfill for the authenticated user’s active organization. Populates MatrixAnnotatorEntry.value_counts and rebuilds the ProjectSummary.dimension_value_counts cache for all tasks, without recomputing agreement scores. Exactly one of three body fields must be provided:
- project_id: backfill a single specific project.
- num_projects: batched org backfill — queue the next N not-yet-started projects (in ascending project ID order), leaving any currently in-flight jobs untouched. Repeat calls until
projects_remainingin the response reaches 0. - all_projects: full org backfill — cancel all in-flight jobs and queue every remaining non-completed project at once.
Requires administrator or owner role and access to Agreement V2 value counts.
Authentication
The token (or API key) must be passed as a request header. You can find your user token on the User Account page in Label Studio. Example:
curl https://label-studio-host/api/projects -H “Authorization: Token [your-token]”Request
Set to true to trigger a full org backfill (cancels in-flight jobs and queues all remaining projects).
Queue at most this many projects per call (batched mode).
Response
Queued jobs: [{job_id, rq_job_id, project_id}]
Projects not yet started and not currently in-flight. Relevant when num_projects is used — call POST again until this reaches 0.