Chat API
- Introduction
- Endpoints
Admin API
- Getting started
- Concepts
- Endpoints
Files API
Tables API
- Getting Started
- Endpoints
Runtime API
- Getting Started
- Concepts
- Endpoints
updateFileMetadata
Update file metadata, without updating the file content.
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
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
.
Was this page helpful?
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>"
}
}