v76

OpenAPI 3.0.3raw.githubusercontent.com2026-08-015764591.5 MB
Dimensions

✨ Trigger Dimension value-counts backfill

<Card href="https://humansignal.com/goenterprise"> <img style="pointer-events: none; margin-left: 0px; margin-right: 0px;" src="https://docs.humansignal.com/images/badge.svg" alt="Label Studio Enterprise badge"/> <p style="margin-top: 10px; font-size: 14px;"> This endpoint is not available in Label Studio Community Edition. [Learn more about Label Studio Enterprise](https://humansignal.com/goenterprise) </p> </Card> 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_remaining in 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.

post/api/dimensions/value-counts-backfill/

Request body

all_projectsboolean nullable

Set to true to trigger a full org backfill (cancels in-flight jobs and queues all remaining projects).

num_projectsinteger nullable

Queue at most this many projects per call (batched mode).

project_idinteger nullable

Backfill a single specific project.

Response

jobsobject[] required

Queued jobs: [{job_id, rq_job_id, project_id}]

jobs_queuedinteger required

Number of jobs queued in this request

messagestring required
organization_idinteger required
projects_remaininginteger required

Projects not yet started and not currently in-flight. Relevant when num_projects is used — call POST again until this reaches 0.

projects_skippedinteger required

Projects skipped because they already have a completed backfill