itglue_create_document
Create a new document in ITGlue, associated with an organization.
The document is created as a draft. Use itglue_publish_document to publish it. Use itglue_create_document_section to add content sections after creation.
Args:
- organization_id (number, required): Organization to associate the document with
- name (string, required): Document name/title
- response_format ("markdown"|"json", default "markdown"): Output format
Returns: The newly created document with its assigned ID and metadata.
Examples:
- "Create a new runbook for org 123" -> { organization_id: 123, name: "Server Maintenance Runbook" }
Error Handling:
- Returns "Error: Validation failed..." if required fields are missing
- Returns "Error: Resource not found..." if the organization doesn't exist