Examples

PUT /katello/api/content_views/64601712
{
  "content_view": {
    "component_ids": [
      234564707
    ]
  }
}
200
{
  "content_host_count": 0,
  "composite": true,
  "component_ids": [],
  "duplicate_repositories_to_publish": [],
  "default": false,
  "version_count": 1,
  "latest_version": "1.0",
  "latest_version_id": 323882142,
  "auto_publish": true,
  "solve_dependencies": false,
  "import_only": false,
  "generated_for": "none",
  "related_cv_count": 0,
  "related_composite_cvs": [],
  "needs_publish": null,
  "filtered": false,
  "repository_ids": [],
  "id": 64601712,
  "name": "Composite view",
  "label": "composite_view",
  "description": "A content view",
  "organization_id": 114267492,
  "organization": {
    "name": "Empty Organization",
    "label": "Empty_Organization",
    "id": 114267492
  },
  "created_at": "2024-02-22 18:22:29 UTC",
  "updated_at": "2024-02-22 18:22:29 UTC",
  "last_task": null,
  "latest_version_environments": [
    {
      "id": 562075838,
      "name": "Library",
      "label": "library_label"
    }
  ],
  "repositories": [],
  "versions": [
    {
      "id": 323882142,
      "version": "1.0",
      "published": "2024-02-22 18:22:29 UTC",
      "description": null,
      "environment_ids": [
        562075838
      ],
      "filters_applied": null,
      "published_at_words": "6 minutes"
    }
  ],
  "components": [],
  "content_view_components": [],
  "activation_keys": [],
  "hosts": [],
  "next_version": "2.0",
  "last_published": "2024-02-22 18:22:29 UTC",
  "environments": [
    {
      "id": 562075838,
      "label": "library_label",
      "name": "Library",
      "activation_keys": [],
      "hosts": [],
      "permissions": {
        "readable": true
      }
    }
  ],
  "errors": null
}

Params

Param name Description
id
required

Content view identifier

Validations:

  • Must be a number.

name
optional

New name for the content view

Validations:

  • String

description
optional

Description for the content view

Validations:

  • String

repository_ids
optional

List of repository ids

Validations:

  • Must be an array of any type

component_ids
optional

List of component content view version ids for composite views

Validations:

  • Must be an array of any type

auto_publish
optional

Enable/Disable auto publish of composite view

Validations:

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

solve_dependencies
optional

Solve RPM dependencies by default on Content View publish, defaults to false

Validations:

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

import_only
optional

Designate this Content View for importing from upstream servers only. Defaults to false

Validations:

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