diff --git a/spec3.json b/spec3.json index 5da9b07..bcd4767 100644 --- a/spec3.json +++ b/spec3.json @@ -3301,6 +3301,10 @@ "editMode": { "$ref": "#/components/schemas/TextEditMode" }, + "findText": { + "type": "string", + "description": "The text to find within the document when using `patch` editMode. This text will be replaced with the value of `text`. Required when `editMode` is `patch`." + }, "publish": { "type": "boolean", "description": "Whether this document should be published and made visible to other workspace members, if a draft" @@ -8095,11 +8099,12 @@ }, "TextEditMode": { "type": "string", - "description": "The editing mode for text updates to a document.", + "description": "The editing mode for text updates to a document. When set to `patch`, the `findText` parameter is required and the existing occurrence of `findText` will be replaced with the value of `text`.", "enum": [ "append", "prepend", - "replace" + "replace", + "patch" ] }, "Attachment": { @@ -8919,6 +8924,11 @@ "example": true, "description": "If to also give permission to view documents nested beneath this one." }, + "allowSubscriptions": { + "type": "boolean", + "example": true, + "description": "Whether visitors to the public share can subscribe to receive email notifications when the document is updated. Requires SMTP to be configured on the workspace." + }, "createdAt": { "type": "string", "format": "date-time", diff --git a/spec3.yml b/spec3.yml index 7d368da..ea96ef8 100644 --- a/spec3.yml +++ b/spec3.yml @@ -2404,6 +2404,11 @@ paths: description: Whether insights should be visible on the document editMode: "$ref": "#/components/schemas/TextEditMode" + findText: + type: string + description: The text to find within the document when using + `patch` editMode. This text will be replaced with the value + of `text`. Required when `editMode` is `patch`. publish: type: boolean description: Whether this document should be published and made @@ -5550,11 +5555,14 @@ components: - read_write TextEditMode: type: string - description: The editing mode for text updates to a document. + description: The editing mode for text updates to a document. When set to + `patch`, the `findText` parameter is required and the existing occurrence + of `findText` will be replaced with the value of `text`. enum: - append - prepend - replace + - patch Attachment: type: object properties: @@ -6187,6 +6195,12 @@ components: example: true description: If to also give permission to view documents nested beneath this one. + allowSubscriptions: + type: boolean + example: true + description: Whether visitors to the public share can subscribe to + receive email notifications when the document is updated. Requires + SMTP to be configured on the workspace. createdAt: type: string format: date-time