Rivier/ Reference/ inbox

Attach a file (base64, at most 20 MB, 25 MB and 20 files per message) to a draft

post/workspace/inbox/drafts/{id}/attachments

Attach a file (base64, at most 20 MB, 25 MB and 20 files per message) to a draft. Programs are refused whatever they are called; a scanner, when connected, can refuse more. The file is stored in the Library.

Before you call

Credential
Authorization: Bearer $KEY
Scope
inbox:write
Graphql
Mutation.inboxAttachmentAdd
Sdk
inbox.attachment.add
Cli
inbox attachment add

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • namestringrequired
    At most 300 characters.
  • contentTypestring
    At most 120 characters.
  • dataBase64stringrequired
    At most 28000000 characters.
  • inlineboolean
  • contentIdstring
    At most 200 characters.

Responses

  • 201application/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