Examples

POST /api/job_templates/1007982140-Job%20template%20194/clone
{
  "job_template": {
    "name": "MyClone"
  }
}
201
{
  "name": "MyClone",
  "id": 1007982140,
  "template": "id",
  "snippet": false,
  "template_kind_id": null,
  "created_at": "2024-05-23T19:42:02.061Z",
  "updated_at": "2024-05-23T19:42:02.079Z",
  "locked": false,
  "default": false,
  "vendor": null,
  "os_family": null,
  "job_category": "Job name 191",
  "provider_type": "SSH",
  "description_format": null,
  "execution_timeout_interval": null,
  "description": null,
  "ansible_callback_enabled": false
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Integer

id
required

Validations:

  • string from 2 to 128 characters containing only alphanumeric characters, space, '_', '-' with no leading or trailing space..

job_template
required

Validations:

  • Hash

job_template[name]
required

Template name

Validations:

  • String