Scripts

Create Or Update Script

Changed on

Create or update a script.

Args: script_name: Name of the script (from URL path) script: Script object with content

Returns: Success message when script is saved

Raises: HTTPException: 400 if save error occurs

post/scripts/{script_name}

Request

  • Base URL
    http://localhost:8000
  • URL
    http://localhost:8000/scripts/{script_name}
  • Auth
    HTTP basic

Path parameters

script_namestring required

Request body

contentstring required

Script source code

Response

Successful Response

unknown required

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • breaking

      the response's body type changed from object to no type for status