Create a document in Outline
Version added: 0.0.1
- Create a new document in Outline.
- By default a document is set to the collection root.
- If you want to create a nested/child document, you should pass parent_document_id.
| Parameter | Choices/Defaults | Comments |
|---|---|---|
|
api_endpoint
string
/ required
|
URL of your Outline instance API (e.g. V(https://app.getoutline.com/api))
You can also set this option by using the E(OUTLINE_API_URL) environment variable
|
|
|
api_token
string
/ required
|
API Token
You can also set this option by using the E(OUTLINE_API_TOKEN) environment variable
|
|
|
collection_id
string
/ required
|
Identifier for the collection to create the document in.
|
|
|
parent_document_id
string
|
Identifier for the document this should be a child of.
|
|
|
publish
boolean
|
|
Whether this document should be immediately published
and made visible to other team members.
|
|
template
boolean
|
|
Whether this document should be considered to be a template.
|
|
template_id
string
|
Identifier for the template to create this document from.
|
|
|
text
string
|
Default: ""
|
The body of the document, may contain markdown formatting.
|
|
title
string
/ required
|
The title of the document.
|
- name: Create a simple document
scaleuptechnologies.outline_api.document_create:
api_endpoint: https://outline.example.com/api
api_token: secret_token
title: "My Document"
collection_id: "c99ad6f3-04b8-4181-aa20-5d5670f5f984"
text: "# Hello World\n\nThis is my document"
publish: true
- name: Create a document from template
scaleuptechnologies.outline_api.document_create:
api_endpoint: https://outline.example.com/api
api_token: secret_token
title: "My Document from Template"
collection_id: "c99ad6f3-04b8-4181-aa20-5d5670f5f984"
template_id: "bed4fe68-7b0b-496f-988b-ca31333e23fb"
publish: true
- name: Create a nested document
scaleuptechnologies.outline_api.document_create:
api_endpoint: https://outline.example.com/api
api_token: secret_token
title: "Child Document"
collection_id: "c99ad6f3-04b8-4181-aa20-5d5670f5f984"
parent_document_id: "a79c0232-3d65-43b1-b676-7ecadc57a08f"
text: "This is a child document"Common return values are documented here, the following are the fields unique to this module:
- Moritz Jannasch (@mojansch)