Update template.
ROLES: AUTOMATION_ADMIN USER: true SERVICE ACCOUNT: true
curl --request PUT \
--url https://api.revoengine.com/api/v1/automation/template/{jobTemplateId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"version": 123
}'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 123})
};
fetch('https://api.revoengine.com/api/v1/automation/template/{jobTemplateId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/automation/template/{jobTemplateId}"
payload = { "version": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Path Parameters
Body
Current version.
Saved execution authority. Null restores inheritance. Clear legacy triggerUser when changing this policy.
Show child attributes
Show child attributes
{ "mode": "INHERIT" }
Globally unique job-template name within the instance. Check for another template with this exact name before renaming; direct triggers may also resolve the template by name.
Category.
Description.
Replacement resource metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use.
Component identifier.
Portable exact component revision identity. Set null to follow latest.
Job execution timeout in seconds. The effective limit comes from the instance jobTimeout quota, up to 3540 seconds (59 minutes).
1 <= x <= 3540300
Deprecated saved executor alias. Prefer executionPolicy; use null to clear the alias.
Deprecated legacy template inputs. Use options.input. Must be a JSON object; null is stored as an empty object.
Execution options. Custom low-code template values live under "input".
Show child attributes
Show child attributes
Response
OK.
curl --request PUT \
--url https://api.revoengine.com/api/v1/automation/template/{jobTemplateId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"version": 123
}'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({version: 123})
};
fetch('https://api.revoengine.com/api/v1/automation/template/{jobTemplateId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/automation/template/{jobTemplateId}"
payload = { "version": 123 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)
