Examples

PUT /katello/api/activation_keys/568942081/content_override
{
  "content_overrides": [
    {
      "content_label": "fedora",
      "name": "enabled",
      "value": true
    },
    {
      "content_label": "fedora",
      "value": 0
    },
    {
      "content_label": "croissant",
      "name": "mirrorlist",
      "remove": true
    },
    {
      "content_label": "crepe",
      "name": "mirrorlist",
      "remove": true
    }
  ],
  "activation_key": {}
}
400
{
  "displayMessage": "Content label(s) \"croissant, crepe\" were not found in the Organization \"Empty Organization\"",
  "errors": [
    "Content label(s) \"croissant, crepe\" were not found in the Organization \"Empty Organization\""
  ]
}

Params

Param name Description
id
required

ID of the activation key

Validations:

  • Must be a number.

content_overrides
optional

Array of Content override parameters to be added in bulk

Validations:

  • Must be an Array of nested elements

content_overrides[content_label]
required

Label of the content

Validations:

  • String

content_overrides[value]
optional

Override value. Provide a boolean value if name is 'enabled'

Validations:

  • String

content_overrides[name]
optional

Override parameter key or name. Note if name is not provided the default name will be 'enabled'

Validations:

  • String

content_overrides[remove]
optional

Set true to remove an override and reset it to 'default'

Validations:

  • Must be one of: true, false, 1, 0.