Buckets
Update a bucket
Updates the display name and the color of a bucket. With async=true the update is enqueued as a job (202). The synchronous variant is deprecated.
Initial response returns job details JobResponse. The result of the asynchronous job can be fetched via /v2/storage/jobs/{id}. When the job completes, final result is BucketUpdateJobResult.
Parameters of job will be BucketUpdateJobParams.
[Deprecated] This endpoint can be used synchronously as well. In that case, the final result is returned directly in the response BucketUpdateResponse.
put/v2/storage/buckets/{bucketId}
Request
- Base URLhttps://connection.keboola.com
- Auth
- API key in header X-StorageApi-Token
- or API key in header X-KBC-ManageApiToken
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
bucketIdstring required
Identifier of the bucket to update.
Query parameters
asyncboolean
When true, the update is performed asynchronously as a job.
Request body
Example request
{
"displayName": "my-bucket"
}Response
The updated bucket (synchronous, deprecated).
Example response
{
"uri": "https://connection.keboola.com/v2/storage/buckets/in.c-my-new-bucket",
"id": "in.c-my-new-bucket",
"name": "c-my-new-bucket",
"displayName": "my-new-bucket",
"idBranch": 1234,
"stage": "in",
"description": "Some Description",
"tables": "https://connection.keboola.com/v2/storage/buckets/in.c-my-new-bucket",
"created": "2017-02-13T12:01:05+0100",
"updated": "2024-11-28T13:03:13+0100",
"backend": "snowflake",
"path": "database_name.c-my-new-bucket",
"bucketSharingAllowed": true,
"sharingParameters": {
"projects": [
{
"id": 321,
"name": "Some Project"
}
],
"users": [
{
"id": 5,
"name": "Jan Developer",
"email": "jan.dev@keboola.com"
}
]
},
"sharedBy": {
"id": 5,
"name": "dev@keboola.com",
"date": "2020-02-03T14:58:29+0100"
},
"owner": {
"id": 123,
"name": "Jan Developer",
"email": "jan.dev@keboola.com"
},
"sourceBucket": {
"id": "in.c-main",
"name": "c-main",
"displayName": "main",
"stage": "in",
"description": "Organization shared data",
"sharing": "organization-project",
"created": "2020-01-12T18:28:31+0100",
"lastChangeDate": "2020-01-12T18:31:49+0100",
"dataSizeBytes": 1536,
"rowsCount": 32,
"backend": "snowflake",
"path": "database_name.c-main",
"project": {
"id": 123,
"name": "Project name"
},
"tables": [
{
"id": "in.c-main.languages",
"name": "languages",
"displayName": "languages-display-name",
"path": "/1234-languages"
}
],
"sharingParameters": {
"projects": [
{
"id": 321,
"name": "Some Project"
}
],
"users": [
{
"id": 5,
"name": "Jan Developer",
"email": "jan.dev@keboola.com"
}
]
},
"sharedBy": {
"id": 5,
"name": "dev@keboola.com",
"date": "2020-02-03T14:58:29+0100"
},
"owner": {
"id": 123,
"name": "Jan Developer",
"email": "jan.dev@keboola.com"
},
"metadata": [
{
"id": "19509",
"key": "some-key",
"value": "Some value",
"provider": "test-component",
"timestamp": "2017-02-13T23:36:10+0100"
}
]
},
"backendPath": [
"KBC_PRJ_123",
"in.c-my-new-bucket"
]
}Changes
No recorded changes to this operation across all 1 revision of this API.