awork icon

awork

Automate your workflows with the awork API

Actions110

Document → Create Document

AI-generated

Summary

Creates an awork document with a required name and optional content, icon, parent, and access settings. The document can be associated with a document space, project, or task, or created as a private document.

Inputs

  • Document Name (required) — Name for the new document.
  • Document Space ID — Document space to create the document in; leave empty when using a project, task, or private document.
  • Project ID — Project to create the document in; leave empty when using a document space, task, or private document.
  • Document Content — Document body in the selected HTML or Markdown format.
  • Content Format — Choose HTML or Markdown for the content; defaults to HTML.
  • Emoji — Emoji icon for the document.
  • Parent Document ID — ID of a document in the same project or document space under which to nest this document.
  • Additional Fields — Optional settings: hide the document from Connect users, set its position in the document list, mark it private, reference a task by ID, and set workspace access to Manage, None, or Read.
  • Request Options — Node-level HTTP request settings, including batching, SSL certificate handling, proxy, and timeout.

Output shape

a single document record

The provided source pack shows only function signatures, not the create implementation or return handling; the output shape is not confirmed by the source.

Links

Discussion