Examples

PUT /api/operatingsystems/1073012828-RHEL%206-1/os_default_templates/980190962
{
  "os_default_template": {
    "provisioning_template_id": 821548108,
    "template_kind_id": 452984334
  }
}
200
{
  "id": 980190962,
  "provisioning_template_id": 821548108,
  "provisioning_template_name": "PXELinux default local boot",
  "template_kind_id": 452984334,
  "template_kind_name": "PXELinux",
  "operatingsystem_id": 1073012828,
  "operatingsystem_name": "RHEL 6.1"
}

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

operatingsystem_id
optional

ID of operating system

Validations:

  • Must be a number.

id
required

Validations:

  • String

os_default_template
required

Validations:

  • Hash

os_default_template[template_kind_id]
optional , nil allowed

Validations:

  • Must be a number.

os_default_template[provisioning_template_id]
optional , nil allowed

ID of provisioning template

Validations:

  • Must be a number.