Rivier/ Reference/ content

Save a document, naming the version the change started from

put/documents/{id}

Save a document, naming the version the change started from. If someone saved a newer one meanwhile, the save is refused with theirs.

Before you call

Credential
Authorization: Bearer $KEY
Scope
content:write
Mcp
rivier_document_save
Graphql
Mutation.contentDocumentSave
Sdk
content.document.save
Cli
content document save

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • docobjectrequired
    • titlestring
      At most 200 characters.
    • baseVersionIdstringrequired

    Responses

    • 200application/json
      Success
      • 400application/json
        The request was malformed
        • errorstringrequired
        • messagestring
      • 401application/json
        No valid credential
        • errorstringrequired
        • messagestring
      • 403application/json
        The credential lacks the scope, origin or address
        • errorstringrequired
        • messagestring
      • 429application/json
        Over the key's rate limit; see Retry-After
        • errorstringrequired
        • messagestring

      This page as Markdown