Scripts

Update a script

Changed on

Update a project script's body and/or description.

patch/scripts/{name}

Request

  • Base URL: https://api.sazabi.com/v1
  • URL: https://api.sazabi.com/v1/scripts/{name}
  • Auth: none declared

Path parameters

namestring required

Script to update.

Request body

expectedScriptIdstring uuid required

Script ID returned by the read being edited; protects against name reuse.

expectedRevisioninteger required

configurationRevision returned by the read being edited. Stale writes return a conflict.

projectIdstring uuid

Project that owns the script. Auto-filled from CLI and SDK context when omitted.

contentstring

New script body. Omit to leave content unchanged.

descriptionstring nullable

New description, or null to clear it. Omit to leave unchanged.

Response

OK

Changes

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      request body became required

    • info

      added the required property / to the response with the status