Upload a Library artifact

Changed on

Save a file as a new artifact, as the web Library's upload does. Multipart form: file, requestId (a retry with the same id saves once) and optional workspace (a workspace key to place it in).

post/library/artifacts

Request

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

Request body multipart/form-data

filestring binary required
requestIdstring required
workspacestring

Response

OK

artifactobject

Changes