---
title: "Sync import storage"
method: POST
path: "/api/dataset-storages/azure/{id}/sync/"
tags: ["Dataset Storage: Azure"]
---

# Sync import storage

`POST /api/dataset-storages/azure/{id}/sync/`

Sync tasks from an Azure import storage connection.

## Path parameters

- `id` integer, required

## Request body

- AzureDatasetStorageRequest
  - `account_key` string, nullable — Azure Blob account key
  - `account_name` string, nullable — Azure Blob account name
  - `container` string, nullable — Azure blob container
  - `dataset` integer, required — A unique integer value identifying this dataset.
  - `description` string, nullable — Cloud storage description
  - `glob_pattern` string, nullable — Glob pattern for syncing from bucket
  - `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)
  - `recursive_scan` boolean, nullable — Perform recursive scan over the container content
  - `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
  - `synced` boolean — Flag if dataset has been previously synced or not
  - `synchronizable` boolean
  - `title` string, nullable — Cloud storage title
  - `traceback` string, nullable — Traceback report for the last failed sync
  - `use_blob_urls` boolean — Interpret objects as BLOBs and generate URLs

## Response `200`

- AzureDatasetStorage
  - `account_key` string, nullable — Azure Blob account key
  - `account_name` string, nullable — Azure Blob account name
  - `container` string, nullable — Azure blob container
  - `created_at` string, date-time, required — Creation time
  - `dataset` integer, required — A unique integer value identifying this dataset.
  - `description` string, nullable — Cloud storage description
  - `glob_pattern` string, nullable — Glob pattern for syncing from bucket
  - `id` integer, required
  - `job_id` string, nullable, 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)
  - `recursive_scan` boolean, nullable — Perform recursive scan over the container content
  - `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
  - `synced` boolean — Flag if dataset has been previously synced or not
  - `synchronizable` boolean
  - `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

---

[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)
