---
title: "Update import storage"
method: PATCH
path: "/api/storages/gcs/{id}"
tags: ["Storage: GCS"]
---

# Update import storage

`PATCH /api/storages/gcs/{id}`

Update a specific GCS import storage connection.

## Path parameters

- `id` integer, required

## Request body

- object
  - `bucket` string — GCS bucket name
  - `description` string — Storage description
  - `google_application_credentials` string — The content of GOOGLE_APPLICATION_CREDENTIALS json file. Check official Google Cloud Authentication documentation for more details.
  - `google_project_id` string — Google project ID
  - `prefix` string — GCS bucket prefix
  - `presign` boolean — Presign URLs for direct download
  - `presign_ttl` integer — Presign TTL in minutes
  - `project` integer — Project ID
  - `regex_filter` string — Cloud storage regex for filtering objects. You must specify it otherwise no objects will be imported.
  - `title` string — Storage title
  - `use_blob_urls` boolean — Interpret objects as BLOBs and generate URLs. For example, if your bucket contains images, you can use this option to generate URLs for these images. If set to False, it will read the content of the file and load it into Label Studio.

## Response `200`

- GCSImportStorage
  - `bucket` string, nullable — GCS bucket name
  - `created_at` string, date-time, required — Creation time
  - `description` string, nullable — Cloud storage description
  - `google_application_credentials` string, nullable — The content of GOOGLE_APPLICATION_CREDENTIALS json file
  - `google_project_id` string, nullable — Google project ID
  - `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 — GCS bucket prefix
  - `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 over the bucket 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
  - `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.dev/humansignal/apis/label-studio-api.md) · [All operations](https://skmtc.dev/humansignal/apis/label-studio-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/humansignal/label-studio-api/revisions/fa73fba01480/schema)
