Save a new version of a Library artifact

Changed on

Save a new version as the web editor does: revision (the current version; 409 when it is no longer current), requestId, and one of html, text, docx (base64) or restoreRevision.

patch/library/artifacts/{id}/source

Request

  • Base URL
    https://api.agentsky.dev/v1
  • URL
    https://api.agentsky.dev/v1/library/artifacts/{id}/source
  • Auth
    HTTP bearer

Path parameters

idstring required

Artifact id.

Request body

revisioninteger required
requestIdstring required
htmlstring
textstring
docxstring
restoreRevisioninteger

Response

OK

object required

Changes