Skip to content

Lists broken metadata

POST
/ops/list-broken-metadata

Broken metadata is defined as metadata that has isUploaded = true but there is no file in the storage matching it. This is an admin operation that requires the Hasura admin secret.

Successfully computed broken metadata

object
metadata
Array<object>

Basic information about a file in storage.

object
id
required

Unique identifier for the file.

string
Example
d5e76ceb-77a2-4153-b7da-1f7c115b2ff2
name
required

Name of the file including extension.

string
Example
profile-picture.jpg
bucketId
required

ID of the bucket containing the file.

string
Example
users-bucket
isUploaded
required

Whether the file has been successfully uploaded.

boolean
Example
true

En error occured

Error information returned by the API.

object
error

Error details.

object
message
required

Human-readable error message.

string
Example
File not found
data

Additional data related to the error, if any.

object
key
additional properties
any