Publish script lib version

Publish the next version of a host's lib, creating the lib with its first version. A version never changes once published. It becomes the latest, the one every import loads, only when promoted, except a lib's first version, which is the latest at once. The owner can, and so can a project member allowed to update its scripts.

post/api/scripts/{handle}/{host}/lib/versions

Request

  • Base URL: https://reduck.ai
  • URL: https://reduck.ai/api/scripts/{handle}/{host}/lib/versions
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

handlestring required

The owner a resource is addressed under: "@username" for a personal scope, or a bare slug for a project.

hoststring required

The site whose lib it is; scripts import it as lib:<host>.

Request body

contentstring required
notestring

Response

Created

version_numbernumber required
notestring nullable required
created_atstring required
latestboolean required
contentstring required

Changes

No recorded changes to this operation across all 1 revision of this API.