Examples

POST /katello/api/organizations/114267492/content_views
{
  "name": "Test",
  "repository_ids": [
    841753487
  ],
  "content_view": {
    "name": "Test",
    "repository_ids": [
      841753487
    ]
  }
}
404
{
  "message": "Organization with id 114267492 not found"
}

Params

Param name Description
organization_id
required

Organization identifier

Validations:

  • Must be a number.

name
required

Name of the content view

Validations:

  • String

label
optional

Content view label

Validations:

  • String

composite
optional

Composite content view

Validations:

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

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.