IT Glue Documents Management
Overview
Documents in IT Glue provide structured documentation storage for organizations, enabling technicians to create runbooks, procedures, network diagrams, and general documentation. Documents support rich HTML content, embedded passwords, and relationships to other IT Glue resources.
Anti-triggers
- Documentation with a fixed field schema — repeatable, filterable
records are flexible assets, not free-form documents; use
itglue-flexible-assets. - The credential a runbook refers to — passwords are separate
records that documents embed by reference; use
itglue-passwords. - Device facts rather than narrative — use
itglue-configurations.
Key Concepts
Document Structure
Documents consist of:
- Name - Document title
- Content - Rich HTML content with embedded resources
- Folder - Organizational hierarchy location
- Related Items - Links to configurations, contacts, etc.
Document Folders
Folders provide hierarchical organization:
Organization: Acme Corporation
└── Documents
├── Onboarding
│ ├── New User Setup
│ └── Hardware Deployment
├── Procedures
│ ├── Backup Procedures
│ └── Disaster Recovery
└── Network
├── Network Diagram
└── IP Scheme
Embedded Resources
Documents can embed:
- Passwords - Inline credential display (
<div data-embedded-password-id="12345"></div>) - Configurations - Asset links (
<div data-embedded-configuration-id="67890"></div>) - Contacts - Contact information
- Images - Uploaded images/diagrams (
<img src="/uploads/organization/123/...">)
Document Sections
Multi-section documents are composed of ordered sections rather than a single content blob — this is what the Document Sections API reads and writes.
| Type | Description |
|---|---|
Document::Heading |
Heading element (renders as <h2>, etc.) |
Document::Text |
Rich HTML text block |
See references/fields.md for the complete field reference.
Common Workflows
Restructure a Document
Sections must be replaced, not patched, and the document must be republished for changes to appear:
- List existing sections (
GET .../relationships/sections) - Delete all existing sections
- Create new sections in the desired order
- Publish the document with PATCH (not POST) to make changes visible
See references/examples.md for the full restructureDocument implementation, plus runbook creation, search, export, health-check, and template-cloning workflow examples.
New Client Runbook
Ensure the target folder exists, build HTML content section by section (overview, prerequisites, steps, embedded credentials), create the document, then create related items linking it to relevant configurations.
API Patterns
- List documents by organization only —
GET /documents(top-level) returns 404 in practice. UseGET /organizations/:id/relationships/documentsinstead. - Editing body content —
PATCH /documents/:idwith acontentattribute silently does nothing on multi-section documents. Use the Document Sections API (create/update/delete individual sections) instead. - Publishing —
PATCH /documents/:id/publishmakes section edits visible. POST returns 404; no request body is required.
See references/api.md for the complete endpoint catalog: document, section, folder, and related-item CRUD with full request/response examples.
Gotchas
- 404 on organization documents usually means the IT Glue Documents module isn't enabled for that organization — fall back to
search_flexible_assets, since flexible assets are the more common documentation mechanism in practice. - Section content updates require the Sections API, not
PATCH /documents/:id— the top-levelcontentattribute is only honored for single-blob (non-sectioned) documents. - Publish is PATCH, not POST — POSTing to
/documents/:id/publishreturns 404.
See references/errors.md for the complete error-code and validation-error tables plus a retry pattern for invalid-folder errors.
Best Practices
- Use consistent structure - Follow templates for standard documents
- Organize with folders - Create logical folder hierarchy
- Keep content current - Review and update regularly
- Embed credentials - Use embedded passwords instead of plain text
- Link related items - Connect documents to configurations
- Use meaningful names - Clear, descriptive document titles
- Include metadata - Add last reviewed date, author, version
- Standardize formatting - Consistent headings and structure
- Add visual aids - Include diagrams and screenshots
Related Skills
- IT Glue Organizations - Document organization scope
- IT Glue Configurations - Related configurations
- IT Glue Passwords - Embedded credentials
- IT Glue Flexible Assets - Structured documentation
- IT Glue API Patterns - API reference