Update a file
Update one file display name or caller-owned metadata.
Authentication
AuthorizationBearer
Use Bearer <api-key>.
Path parameters
fileId
Unique file identifier generated by BCTRL.
Headers
BCTRL-Subaccount-Id
Optional effective subaccount context for organization API keys. Subaccount API keys are already scoped and cannot use this header to act as another subaccount.
Request
This endpoint expects an object.
metadata
name
Customer-facing resource name. 1–200 characters.
Response
OK
contentType
createdAt
RFC 3339 timestamp with a UTC offset.
downloadUrl
id
Unique file identifier generated by BCTRL.
name
Customer-facing resource name. 1–200 characters.
path
sizeBytes
Non-negative number of bytes.
source
spaceId
Unique space identifier generated by BCTRL.
expiresAt
RFC 3339 timestamp with a UTC offset.
metadata
runId
Unique run identifier generated by BCTRL.
runtimeId
Unique runtime identifier generated by BCTRL.
type
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error

