@spacehq/sdk > GundbMetadataStore > createBucket
GundbMetadataStore.createBucket() method
Create a BucketSchema record with dbId belonging to the current user.
It should fail if a bucketSlug with similar dbId already exists.
Signature:
createBucket(bucketSlug: string, dbId: string, bucketKey: string): Promise<BucketMetadata>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| bucketSlug | string | unqiue slug representing bucket provided by user. |
| dbId | string | unique id representing bucket thread provided by user storage. |
| bucketKey | string | unique id representing bucket provided by user storage. |
Returns:
Promise<BucketMetadata>