curl --request POST \
--url http://localhost:8000/scripts/{script_name} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}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
curl --request POST \
--url http://localhost:8000/scripts/{script_name} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"content": "<string>"
}
'{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Script file content
Script source code
Successful Response
Was this page helpful?