Examples

PUT /katello/api/organizations/114267492/sync_plans/712395790
{
  "sync_plan": {
    "interval": "weekly"
  }
}
200
{
  "id": 712395790,
  "organization_id": 114267492,
  "name": "Sync Plan Hourly",
  "description": "An hourly sync plan",
  "interval": "weekly",
  "next_sync": "2022-11-10 17:46:00 UTC",
  "sync_date": "2014-01-09 17:46:00 UTC",
  "created_at": "2014-01-09 17:46:00 UTC",
  "updated_at": "2022-11-08 19:25:50 UTC",
  "enabled": true,
  "foreman_tasks_recurring_logic_id": 12,
  "cron_expression": null,
  "products": [],
  "permissions": {
    "view_sync_plans": true,
    "edit_sync_plans": true,
    "destroy_sync_plans": true
  }
}

Params

Param name Description
organization_id
optional

Organization ID

Validations:

  • Must be a number.

id
required

sync plan numeric identifier

Validations:

  • Must be a number.

name
optional

sync plan name

Validations:

  • String

interval
optional

how often synchronization should run

Validations:

  • Must be one of: hourly, daily, weekly, custom cron.

sync_date
optional

start datetime of synchronization

Validations:

  • String

description
optional

sync plan description

Validations:

  • String

enabled
optional

enables or disables synchronization

Validations:

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

cron_expression
optional

Add custom cron logic for sync plan

Validations:

  • String