Examples

POST /api/trends
{
  "trend": {
    "trendable_type": "Model"
  }
}
201
{
  "created_at": "2020-03-05 13:42:45 UTC",
  "updated_at": "2020-03-05 13:42:45 UTC",
  "id": 11,
  "trendable_type": "Model",
  "trendable_id": null,
  "fact_name": null,
  "type": "ForemanTrend",
  "name": null,
  "label": "Model"
}

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

trendable_type
required

Validations:

  • Must be one of: Environment, Operatingsystem, Model, FactName, Hostgroup, ComputeResource.

fact_name
optional

Validations:

  • Must be a String

name
optional

Validations:

  • Must be a String