PUT
/
v1
/
files
/
{id}
curl --request PUT \
  --url https://api.botpress.cloud/v1/files/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "metadata": "<any>",
  "tags": {},
  "accessPolicies": [
    "integrations"
  ],
  "expiresAt": "2023-11-07T05:31:56Z"
}'
{
  "file": {
    "id": "<string>",
    "botId": "<string>",
    "key": "<string>",
    "url": "<string>",
    "size": 123,
    "contentType": "<string>",
    "tags": {},
    "metadata": {},
    "createdAt": "<string>",
    "updatedAt": "<string>",
    "accessPolicies": [
      "integrations"
    ],
    "index": true,
    "status": "upload_pending",
    "failedStatusReason": "<string>",
    "expiresAt": "<string>"
  }
}

Path Parameters

id
string
required

File ID or Key

Body

application/json
File metadata to update.

The body is of type object.

Response

200
application/json
An object containing the updated file metadata.

The response is of type object.