outline icon

outline

Interact with outline API

Actions107

Attachments → Attachments Create

AI-generated

Summary

Creates a new attachment record in Outline with metadata such as file name, content type, size, and optional document association.

Inputs

  • name (required) — Name of the file attachment.
  • documentId — Identifier for the associated document, if any.
  • contentType (required) — MIME type of the file attachment.
  • size (required) — Size of the file attachment in bytes.

Output shape

a single record

Returns attachment object details and upload metadata from the Outline API.

Examples

Example 1: Create an attachment entry for an image associated with a document

Set Name to "diagram.png", Content Type to "image/png", Size to 102400, and Document Id to "doc-12345".

Links

Discussion