---
title: "✨ Sync Azure SPI import storage"
method: POST
path: "/api/storages/azure_spi/{id}/sync"
tags: ["Storage: Azure SPI"]
---

# ✨ Sync Azure SPI import storage

`POST /api/storages/azure_spi/{id}/sync`

<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>
Sync tasks from an Azure import storage connection that was set up with Service Principal authentication.

## Path parameters

- `id` integer, required

## Response `200`

- AzureServicePrincipalImportStorage
  - `account_name` string, nullable — Azure Blob account name
  - `client_id` string, nullable — Azure Blob Service Principal Client ID
  - `client_secret` string, nullable — Azure Blob Service Principal Client Secret
  - `container` string, nullable — Azure blob container
  - `created_at` string, date-time, required — Creation time
  - `description` string, nullable — Cloud storage description
  - `id` integer, required
  - `last_sync` string, date-time, nullable — Last sync finished time
  - `last_sync_count` integer, nullable — Count of tasks synced last time
  - `last_sync_job` string, nullable — Last sync job ID
  - `meta` unknown
  - `prefix` string, nullable — Azure blob prefix name
  - `presign` boolean
  - `presign_ttl` integer — Presigned URLs TTL (in minutes)
  - `project` integer, required — A unique integer value identifying this project.
  - `recursive_scan` boolean, nullable — Perform recursive scan
  - `regex_filter` string, nullable — Cloud storage regex for filtering objects
  - `status` 'initialized' | 'queued' | 'in_progress' | 'failed' | 'completed' | 'completed_with_errors' — * `initialized` - Initialized * `queued` - Queued * `in_progress` - In progress * `failed` - Failed * `completed` - Completed * `completed_with_errors` - Completed with errors
  - `synchronizable` boolean
  - `tenant_id` string, nullable — Azure Tenant ID
  - `title` string, nullable — Cloud storage title
  - `traceback` string, nullable — Traceback report for the last failed sync
  - `type` string, required
  - `use_blob_urls` boolean — Interpret objects as BLOBs and generate URLs
  - `user_delegation_key` string, nullable — User Delegation Key (Backend)

---

[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/versions/1b113b8df950/schema)
