Examples

POST /api/trends
{
  "trend": {
    "trendable_type": "FactName",
    "trendable_id": "5"
  }
}
201
{
  "created_at": "2018-07-24 13:15:10 UTC",
  "updated_at": "2018-07-24 13:15:10 UTC",
  "id": 11,
  "trendable_type": "FactName",
  "trendable_id": 5,
  "fact_name": "operatingsystem",
  "type": "FactTrend",
  "name": null,
  "label": "operatingsystem"
}

Params

Param name Description
location_id
optional

Scope by locations

Validations:

  • Must be a Integer

organization_id
optional

Scope by organizations

Validations:

  • Must be a Integer

trendable_type
required

Validations:

  • Must be a String

fact_name
optional

Validations:

  • Must be a String

name
optional

Validations:

  • Must be a String