Examples

POST /api/job_templates/1007982068-Job%20template%20234/clone
{
  "job_template": {
    "name": "MyClone"
  }
}
201
{
  "name": "MyClone",
  "id": 1007982068,
  "template": "id",
  "snippet": false,
  "template_kind_id": null,
  "created_at": "2023-11-27T20:15:29.507Z",
  "updated_at": "2023-11-27T20:15:29.521Z",
  "locked": false,
  "default": false,
  "vendor": null,
  "os_family": null,
  "job_category": "Job name 238",
  "provider_type": "SSH",
  "description_format": null,
  "execution_timeout_interval": null,
  "description": null
}

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