Examples

POST /api/trends
{
  "trend": {
    "trendable_type": "NotExists"
  }
}
500
{
  "error": {
    "message": "uninitialized constant NotExists"
  }
}

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