Files
Upload a file
Files are used to upload documents that can be used with features like Deployments.
POST
Upload a file
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Available options:
FILE_PURPOSE_UNSPECIFIED, FILE_PURPOSE_RETRIEVAL, FILE_PURPOSE_KNOWLEDGE_DATASOURCE, FILE_PURPOSE_BATCH Project the file is created in. Optional for project-scoped API keys (defaults to the key's bound project); required for workspace-scoped callers.
Response
200 - application/json
OK