Archive a file

View as Markdown

Soft-archives a file (recoverable). Requires project:manage on the project.

Authentication

AuthorizationBearer

WorkOS session JWT or an organization API key, sent as Authorization: Bearer <token>.

Path parameters

projectIdstringRequired
fileIdstringRequired

Response

The archived file.
fileobject

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error