PUT /api/job_templates/1007982015-Job%20template%20158 { "job_template": { "name": "Job template 158", "job_category": "Job name 159", "template": "id", "provider_type": "SSH", "effective_user_attributes": { "value": "nobody", "overridable": true, "current_user": false } } } 200 { "description": null, "description_format": null, "created_at": "2022-11-08 19:06:21 UTC", "updated_at": "2022-11-08 19:06:21 UTC", "template": "id", "locked": false, "id": 1007982015, "name": "Job template 158", "job_category": "Job name 159", "provider_type": "SSH", "snippet": false, "template_inputs": [], "effective_user": { "value": "nobody", "current_user": false, "overridable": true }, "locations": [ { "id": 255093256, "name": "Location 1", "title": "Location 1", "description": null } ], "organizations": [ { "id": 447626438, "name": "Organization 1", "title": "Organization 1", "description": null } ] }
Param name | Description |
---|---|
location_id optional |
Set the current location context for the request Validations:
|
organization_id optional |
Set the current organization context for the request Validations:
|
id required |
Validations:
|
job_template required |
Validations:
|
job_template[name] optional |
Template name Validations:
|
job_template[description] optional , nil allowed |
Validations:
|
job_template[job_category] optional |
Job category Validations:
|
job_template[description_format] optional , nil allowed |
This template is used to generate the description. Input values can be used using the syntax %{package}. You may also include the job category and template name using %{job_category} and %{template_name}. Validations:
|
job_template[template] optional |
Validations:
|
job_template[provider_type] optional |
Provider type Validations:
|
job_template[snippet] optional , nil allowed |
Validations:
|
job_template[audit_comment] optional , nil allowed |
Validations:
|
job_template[locked] optional , nil allowed |
Whether or not the template is locked for editing Validations:
|
job_template[effective_user_attributes] optional , nil allowed |
Effective user options Validations:
|
job_template[effective_user_attributes][value] optional , nil allowed |
What user should be used to run the script (using sudo-like mechanisms) Validations:
|
job_template[effective_user_attributes][overridable] optional , nil allowed |
Whether it should be allowed to override the effective user from the invocation form. Validations:
|
job_template[effective_user_attributes][current_user] optional , nil allowed |
Whether the current user login should be used as the effective user Validations:
|
job_template[location_ids] optional , nil allowed |
REPLACE locations with given ids Validations:
|
job_template[organization_ids] optional , nil allowed |
REPLACE organizations with given ids. Validations:
|