Rivier/ Reference/ files

Upload a small file as a base64 body

post/assets

Before you call

Credential
Authorization: Bearer $KEY
Scope
files:write
Mcp
rivier_assets_upload
Graphql
Mutation.filesAssetCreate
Sdk
files.asset.create
Cli
files asset create
Events
files.asset.created

Request bodyapplication/json, required

  • contentstringrequired
  • namestring
    At most 300 characters.
  • sha256string
    Pattern: ^[a-fA-F0-9]{64}$.
  • allowDuplicateboolean
  • kindstring
    One of: logo, mark, lockup, wordmark, favicon, palette, typography, guideline, voice, imagery, persona_sheet, avatar, template, font, document, video, audio, image, other.
  • descriptionstring
    At most 2000 characters.
  • altTextstring
    At most 1500 characters.
  • tagslist of string
  • licenceobject or null
  • rightsExpiresAtstring (date-time) or null
  • aiobject or null
  • disclosureLinestring
    At most 400 characters.
  • provenanceobject
    • originPathstring
      At most 500 characters.
    • sourceRefstring
      At most 500 characters.
    • sourceUrlstring (uri)
      At most 1000 characters.
    • importedFromstring
      At most 200 characters.
    • notestring
      At most 500 characters.

Responses

  • 201application/json
    Success
    • assetobjectrequired
      • idstring (uuid)required
      • namestringrequired
      • kindstringrequired
        One of: logo, mark, lockup, wordmark, favicon, palette, typography, guideline, voice, imagery, persona_sheet, avatar, template, font, document, video, audio, image, other.
      • statestringrequired
        One of: draft, in_review, approved, published, rejected, archived.
      • descriptionstringrequired
      • altTextstringrequired
      • tagslist of stringrequired
      • contentTypestringrequired
      • bytesnumberrequired
      • sha256string or nullrequired
      • versionCountnumberrequired
      • publicUrlstring or nullrequired
      • createdAtstringrequired
      • updatedAtstringrequired
    • versionobject or null
    • dedupedbooleanrequired
    • warningslist of values
  • 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