Promote script lib version

Make a version of a host's lib the latest: every script of the owner that imports lib:<host> loads it from its next run. Promoting an older version is the rollback. The owner can, and so can a project member allowed to update its scripts.

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

Request

  • Base URL: https://reduck.ai
  • URL: https://reduck.ai/api/scripts/{handle}/{host}/lib/versions/{version}/promote
  • 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>.

versioninteger required

Response

OK

previous_versionnumber nullable required
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.