View and Edit Script Templates via API
View a Script Template via API
You can use this to:
-
download script content for local editing.
-
view script content in web interfaces.
-
compare script versions using checksums.
-
validate script size before processing.
Note: To perform this action, you must have read permission on the push_templates entity.
Use the following API call to retrieve the raw script content and metadata from a script template:
GET /api/v3/templates/{template_id}/script_content
where template_id (path parameter) is the UUID of the script template.
Edit Script Templates via API
You can use this:
-
to upload modified scripts from external editors.
-
to perform bulk script updates via automation.
-
for version control integration.
-
for CI/CD pipeline script deployment.
Note: To perform this action, you must have write permission on the push_templates entity.
Use the following API call to upload a new script file to replace the content of an existing script template:
PUT /api/v3/templates/{template_id}/script_content
where: template_id (path parameter) is the UUID of the script template.