Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions spec3.json
Original file line number Diff line number Diff line change
Expand Up @@ -8064,7 +8064,7 @@
"Templates"
],
"summary": "Create a template",
"description": "Create a new template that can be used as a starting point for new documents. Templates can optionally be scoped to a specific collection.",
"description": "Create a new template that can be used as a starting point for new documents. Templates can optionally be scoped to a specific collection. When `publish` is false the template is saved as a draft visible only to its creator.",
"requestBody": {
"content": {
"application/json": {
Expand All @@ -8079,7 +8079,6 @@
"title": {
"type": "string",
"description": "The title of the template.",
"minLength": 1,
"maxLength": 255
},
"data": {
Expand All @@ -8101,12 +8100,13 @@
"type": "string",
"format": "uuid",
"description": "Identifier for the collection to which the template belongs."
},
"publish": {
"type": "boolean",
"description": "Whether the template is available to other members. Set to false to create a draft visible only to its creator. Defaults to true.",
"default": true
}
},
"required": [
"title",
"data"
]
}
}
}
}
Expand Down Expand Up @@ -8299,7 +8299,7 @@
"Templates"
],
"summary": "Update a template",
"description": "Update an existing template by its unique identifier.",
"description": "Update an existing template by its unique identifier. Draft templates can be made available to other members by passing `publish: true`.",
"requestBody": {
"content": {
"application/json": {
Expand Down Expand Up @@ -8338,6 +8338,10 @@
"format": "uuid",
"description": "Identifier for the collection to which the template belongs. Set to null for a workspace-wide template.",
"nullable": true
},
"publish": {
"type": "boolean",
"description": "Whether to make a draft template available to other members."
}
},
"required": [
Expand Down
15 changes: 9 additions & 6 deletions spec3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5590,7 +5590,7 @@ paths:
tags:
- Templates
summary: Create a template
description: Create a new template that can be used as a starting point for new documents. Templates can optionally be scoped to a specific collection.
description: Create a new template that can be used as a starting point for new documents. Templates can optionally be scoped to a specific collection. When `publish` is false the template is saved as a draft visible only to its creator.
requestBody:
content:
application/json:
Expand All @@ -5604,7 +5604,6 @@ paths:
title:
type: string
description: The title of the template.
minLength: 1
maxLength: 255
data:
type: object
Expand All @@ -5622,9 +5621,10 @@ paths:
type: string
format: uuid
description: Identifier for the collection to which the template belongs.
required:
- title
- data
publish:
type: boolean
description: Whether the template is available to other members. Set to false to create a draft visible only to its creator. Defaults to true.
default: true
responses:
"200":
description: OK
Expand Down Expand Up @@ -5742,7 +5742,7 @@ paths:
tags:
- Templates
summary: Update a template
description: Update an existing template by its unique identifier.
description: "Update an existing template by its unique identifier. Draft templates can be made available to other members by passing `publish: true`."
requestBody:
content:
application/json:
Expand Down Expand Up @@ -5775,6 +5775,9 @@ paths:
format: uuid
description: Identifier for the collection to which the template belongs. Set to null for a workspace-wide template.
nullable: true
publish:
type: boolean
description: Whether to make a draft template available to other members.
required:
- id
responses:
Expand Down
Loading