Skip to main content

Upload attachment

Attach a local file to a task.

Command in the Asana toolkit · id ooa.asana/upload_attachment · 5 inputs (3 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Endpoint addressStringNohttps://app.asana.com/api/1.0API address. Keep the default unless your company routes Asana through a proxy.
TokenCredentialYesPersonal access token or OAuth token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token.
Task IDStringYesTask id: the long number at the end of the task's link, e.g. 1208000000000001.
PathFileYesLocal file to attach (Asana accepts up to 100 MB).
File nameStringNoName to give the attachment; the local file name when empty.

Outputs​

OutputTypeWhat it is
attachment_idStringId of the attachment.
urlStringAddress to view the attachment.