Examples

GET /api/trends
200
{
  "total": 2,
  "subtotal": 2,
  "page": 1,
  "per_page": 20,
  "search": null,
  "sort": {
    "by": null,
    "order": null
  },
  "results": [
    {
      "created_at": "2019-11-07 09:01:54 UTC",
      "updated_at": "2019-11-07 09:01:54 UTC",
      "id": 16,
      "trendable_type": "FactName",
      "trendable_id": 9,
      "fact_name": "fact153",
      "type": "FactTrend",
      "name": "trend9",
      "label": "trend9"
    },
    {
      "created_at": "2019-11-07 09:01:54 UTC",
      "updated_at": "2019-11-07 09:01:54 UTC",
      "id": 12,
      "trendable_type": "Environment",
      "trendable_id": 93,
      "fact_name": "fact",
      "type": "ForemanTrend",
      "name": "trend8",
      "label": "Environment"
    }
  ]
}

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