Back to DropboxPaper - Docs - Update
Updates an existing Paper doc with the provided content.
Input
type: object
properties:
data:
type: object
description: >
doc_id: The Paper doc ID.
doc_update_policy: The policy used for the current update call.
revision: The latest doc revision. This value must match the head revision
or an error code will be returned. This is to prevent colliding writes.
import_format: The format of provided data.
properties:
doc_update_policy:
type: object
description: >
append: The content will be appended to the doc.
prepend: The content will be prepended to the doc.
Note: the doc title will not be affected.
overwrite_all: The document will be overwitten at the head with the
provided content.
other: None
properties:
.tag:
title: Choice of PaperDocUpdatePolicy
type: string
enum:
- append
- prepend
- overwrite_all
- other
doc_id:
type: string
description: The Paper doc ID.
import_format:
type: object
description: >
The import format of the incoming data.
html: The provided data is interpreted as standard HTML.
markdown: The provided data is interpreted as markdown.
Note: The first line of the provided document will be used as the doc
title.
plain_text: The provided data is interpreted as plain text.
Note: The first line of the provided document will be used as the doc
title.
other: None
properties:
.tag:
title: Choice of ImportFormat
type: string
enum:
- html
- markdown
- plain_text
- other
revision:
type: number
description: >-
The latest doc revision. This value must match the head revision or an
error code will be returned. This is to prevent colliding writes.
title: Data
Output
type: object
description: |
doc_id: Doc ID of the newly created doc.
revision: The Paper doc revision. Simply an ever increasing number.
title: The Paper doc title.
properties:
title:
type: string
description: The Paper doc title.
doc_id:
type: string
description: Doc ID of the newly created doc.
revision:
type: number
description: The Paper doc revision. Simply an ever increasing number.