---
title: "✨ Trigger state backfill for organization"
method: POST
path: "/api/fsm/backfill/"
tags: ["States"]
---

# ✨ Trigger state backfill for organization

`POST /api/fsm/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 state backfill for the authenticated user's active organization. Creates initial state records for entities without states. Requires administrator or owner role and state management access.

## Query parameters

- `project_id` integer

## Response `201`

- StateBackfillResponse
  - `jobs` StateBackfillJobItem[], required
    - `job_id` integer, required — Database ID of the backfill job
    - `project_id` integer, required — Project ID being backfilled
    - `rq_job_id` string, nullable — Redis queue job ID
  - `jobs_queued` integer, required — Number of jobs queued
  - `message` string, required — Status message
  - `organization_id` integer, required — Organization ID
  - `projects_skipped` integer, required — Number of projects skipped because they are already completed

## Other responses

- `400`
- `403` — Permission denied
- `404` — Organization not found

---

[API](https://skmtc.net/humansignal/apis/label-studio-api.md) · [All operations](https://skmtc.net/humansignal/apis/label-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humansignal/label-studio-api/revisions/8ab207b03dd5/schema)
