API ReferenceExport StorageGcs

Create new storage

POST

Create a new target storage connection to Google Cloud Storage.

For information about the required fields and prerequisites, see Google Cloud Storage in the Label Studio documentation.

After you add the storage, you should validate the connection before attempting to sync your data. Your data will not be exported until you sync your connection.

Request

This endpoint expects an object.
can_delete_objects
booleanOptional
Deletion from storage enabled.
title
stringOptional
Storage title
description
stringOptional
Storage description
project
integerOptional
Project ID
bucket
stringOptional
GCS bucket name
prefix
stringOptional
GCS bucket prefix
google_application_credentials
stringOptional

The content of GOOGLE_APPLICATION_CREDENTIALS json file. Check official Google Cloud Authentication documentation for more details.

google_project_id
stringOptional
Google project ID

Response

This endpoint returns an object
can_delete_objects
booleanOptional
Deletion from storage enabled.
title
stringOptional
Storage title
description
stringOptional
Storage description
project
integerOptional
Project ID
bucket
stringOptional
GCS bucket name
prefix
stringOptional
GCS bucket prefix
google_application_credentials
stringOptional

The content of GOOGLE_APPLICATION_CREDENTIALS json file. Check official Google Cloud Authentication documentation for more details.

google_project_id
stringOptional
Google project ID