Skip to content

Update FileInformation in Bucket​

PATCH
/mongodb/buckets/{bucketName}/files/{fileId}

Replace the metadata and optionally the file name

Authorizations​

httpAuth
Type
HTTP (bearer)
or
httpAuth1
Type
HTTP (basic)
or
apiKeyAuth
Type
API Key (header: X-AUTH-APIKEY)

Parameters​

Path Parameters

bucketName*

The name of your MongoDb Collection

Type
string
Required
fileId*

fileId to update

Type
string
Required

Request Body​

application/json
JSON
{
  
"filename": "string",
  
"metadata": {
  
  
"additionalProperties": null
  
}
}

Responses​

application/json
JSON
{
  
"wasAcknowledged": true,
  
"upsertedIds": [
  
  
"string"
  
],
  
"modifiedCount": 0,
  
"matchedCount": 0
}

Playground​

Authorization
Variables
Key
Value
Body

Samples​

Powered by VitePress OpenAPI

Released under the MIT License.