Upload an attachment

Als Markdown anzeigen

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

Scope: attachments:write

Authentifizierung

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.

Pfadparameter

orgIdstringErforderlich

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

Anfrage

This endpoint expects a multipart form containing a file.
filefileErforderlich
The file to upload.

Antwort

The created attachment.
idstringOptional
namestringOptional
content_typestringOptional
size_bytesintegerOptional
urlstringOptional
A signed download URL for the file.
created_atdatetimeOptional

Fehler

400
Bad Request Error