Get Object Metadata
Get the Content-Type and custom metadata of an object.
| Endpoint | Method | Admin Required |
|---|---|---|
/api/v1/objects/metadata | GET | No |
Returns the Content-Type and custom (x-amz-meta-*) metadata of the current version of an object in a bucket you own.
Query Parameters
bucket
string required
Name of the bucket.
key
string required
Object key.
Response
{
"contentType": "image/png",
"metadata": {
"author": "julian"
}
}
metadata is an empty object if no custom metadata has been set.
Errors
| Status | Reason |
|---|---|
400 | Missing bucket or key parameter |
404 | Bucket not found (or not owned by you), or object not found |