Files
supabase/apps/reference/_storage/usage.mdx
T
2022-08-02 13:54:57 +02:00

190 lines
1.6 KiB
Plaintext

---
id: usage
title: Usage
---
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
API documentation for Supabase Storage
<!-- AUTOGENERATED: DO NOT EDIT DIRECTLY IF THIS IS VERSION "next" -->
### Create a bucket
```
/bucket/
```
### Gets all buckets
```
/bucket/
```
### Empty a bucket
```
/bucket/{bucketId}/empty
```
### Get details of a bucket
```
/bucket/{bucketId}
```
### Update properties of a bucket
```
/bucket/{bucketId}
```
### Delete a bucket
```
/bucket/{bucketId}
```
### Delete an object
```
/object/{bucketName}/{wildcard}
```
### Deprecated (use GET /object/authenticated/{bucketName} instead): Retrieve an object
```
/object/{bucketName}/{wildcard}
```
### Update the object at an existing key
```
/object/{bucketName}/{wildcard}
```
### Upload a new object
```
/object/{bucketName}/{wildcard}
```
### Delete multiple objects
```
/object/{bucketName}
```
### Retrieve an object
```
/object/authenticated/{bucketName}/{wildcard}
```
### Generate a presigned url to retrieve an object
```
/object/sign/{bucketName}/{wildcard}
```
### Retrieve an object via a presigned URL
```
/object/sign/{bucketName}/{wildcard}
```
### Generate presigned urls to retrieve objects
```
/object/sign/{bucketName}
```
### Moves an object
```
/object/move
```
### Search for objects under a prefix
```
/object/list/{bucketName}
```
### Copies an object
```
/object/copy
```
### Retrieve an object from a public bucket
```
/object/public/{bucketName}/{wildcard}
```