curl --request POST \
--url https://api.skyvern.com/v1/scripts/{script_id}/deploy \
--header 'Content-Type: application/json' \
--data '
{
"files": {
"content": "cHJpbnQoIkhlbGxvLCBXb3JsZCEiKQ==",
"encoding": "base64",
"mime_type": "text/x-python",
"path": "src/main.py"
}
}
'{
"script_id": "s_abc123",
"version": 1,
"file_count": 123,
"file_tree": {},
"created_at": "2023-11-07T05:31:56Z",
"run_id": "<string>"
}Deploy a script with updated files, creating a new version
curl --request POST \
--url https://api.skyvern.com/v1/scripts/{script_id}/deploy \
--header 'Content-Type: application/json' \
--data '
{
"files": {
"content": "cHJpbnQoIkhlbGxvLCBXb3JsZCEiKQ==",
"encoding": "base64",
"mime_type": "text/x-python",
"path": "src/main.py"
}
}
'{
"script_id": "s_abc123",
"version": 1,
"file_count": 123,
"file_tree": {},
"created_at": "2023-11-07T05:31:56Z",
"run_id": "<string>"
}Skyvern API key for authentication. API key can be found at https://app.skyvern.com/settings.
The unique identifier of the script
"s_abc123"
Request model for deploying a script with updated files.
Array of files to include in the script
Show child attributes
{
"content": "cHJpbnQoIkhlbGxvLCBXb3JsZCEiKQ==",
"encoding": "base64",
"mime_type": "text/x-python",
"path": "src/main.py"
}Successful Response
Unique script identifier
"s_abc123"
Script version number
1
Total number of files in the script
Hierarchical file tree structure
Show child attributes
Timestamp when the script was created
ID of the workflow run or task run that generated this script