Examples

POST /katello/api/products
{
  "product": {
    "name": "fedora product",
    "description": "this is my cool new product.",
    "label": "product_label"
  },
  "organization_id": 114267492
}
201
{
  "sync_state_aggregated": "stopped",
  "redhat": false,
  "id": null,
  "cp_id": null,
  "name": "fedora product",
  "label": "product_label",
  "description": "this is my cool new product.",
  "provider_id": 36826545,
  "sync_plan_id": null,
  "sync_summary": {},
  "gpg_key_id": null,
  "ssl_ca_cert_id": null,
  "ssl_client_cert_id": null,
  "ssl_client_key_id": null,
  "sync_state": null,
  "last_sync": null,
  "last_sync_words": null,
  "organization_id": 114267492,
  "organization": {
    "name": "Empty Organization",
    "label": "Empty_Organization",
    "id": 114267492
  },
  "sync_plan": null,
  "repository_count": 0,
  "created_at": null,
  "updated_at": null,
  "product_content": [],
  "available_content": [],
  "repositories": [],
  "provider": {
    "name": "Anonymous"
  },
  "sync_status": {
    "id": null,
    "product_id": null,
    "progress": null,
    "sync_id": null,
    "state": null,
    "raw_state": null,
    "start_time": null,
    "finish_time": null,
    "duration": null,
    "display_size": null,
    "size": null,
    "is_running": null,
    "error_details": null
  },
  "permissions": {
    "view_products": true,
    "edit_products": true,
    "destroy_products": true,
    "sync_products": true
  },
  "published_content_view_ids": [],
  "active_task_count": 0
}

Params

Param name Description
organization_id
required

ID of the organization

Validations:

  • Must be a number.

description
optional

Product description

Validations:

  • String

gpg_key_id
optional

Identifier of the GPG key

Validations:

  • Must be a number.

ssl_ca_cert_id
optional

Idenifier of the SSL CA Cert

Validations:

  • Must be a number.

ssl_client_cert_id
optional

Identifier of the SSL Client Cert

Validations:

  • Must be a number.

ssl_client_key_id
optional

Identifier of the SSL Client Key

Validations:

  • Must be a number.

sync_plan_id
optional , nil allowed

Plan numeric identifier

Validations:

  • Must be a number.

name
required

Product name

Validations:

  • String

label
optional

Validations:

  • String