Read a hosted document: every block with its id and rev, plus its share links.
POST
/v1/abilities/workspace.doc.readRead a hosted document: every block with its id and rev, plus its share links. Read before patching — the revs you get back are what if_block_rev guards against.
Request body
Section titled “Request body”inputWorkspaceDocReadInputrequiredShow 3 properties
idstringrequiredinclude_commentsbooleanoptionalDefault:falseinclude_historybooleanoptionalDefault:false
contextCallContextoptionalOptional call context. The tenant always comes from the credential:
tenantIdis honoured only by a credential allowed to address sub-tenants, and then nests under the credential’s own tenant.Show 3 properties
tenantIdstringoptionalSub-tenant to act for (sub-tenant credentials only).
runIdstringoptionalThe trust run (from trust.preflight) this call executes under.
verticalIdstringoptionalVertical to attribute created records to.
Returns
Section titled “Returns”Schema shown for 200 · application/json
resultThe ability’s return value. Its shape depends on the ability.