Upload an attachment

以 Markdown 格式查看

Uploads a file to the organization. Send the file as multipart/form-data in the file field.

Scope: attachments:write

身份验证

AuthorizationBearer

Your ara_ API key from Settings > Ara API. Keys are capability-scoped: run, plugins:read, secrets:read, secrets:write, sessions:read, knowledge:read, repos:read, repos:write, reviews:read, reviews:write, analytics:read, org:read, org:write, attachments:read, attachments:write, plugins:write, guardrails:read, guardrails:write.

路径参数

orgIdstring必需

Organization id or slug. Resolve it with GET /v3/self.

请求

This endpoint expects a multipart form containing a file.
filefile必需
The file to upload.

响应

The created attachment.
idstring可选
namestring可选
content_typestring可选
size_bytesinteger可选
urlstring可选
A signed download URL for the file.
created_atdatetime可选

错误

400
Bad Request Error