POST /stats/routines/created_per_day

POST /stats/routines/created_per_day

Returns dates as keys with count of routines created on the date

application/json

Responses

  • 200

    successful operation

    Hide response attributes Show response attributes object
  • 400

    Bad Request

  • 401

    Authorization information is missing or invalid.

  • 500

    Server Error

POST /stats/routines/created_per_day
curl \
 -X POST https://api.cosmily.com/api/v1/stats/routines/created_per_day \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"from_days_ago":42,"time_zone":"string"}'
Request example
{
  "from_days_ago": 42,
  "time_zone": "string"
}
Response examples (200)
{
  "05/20": 42,
  "05/21": 42,
  "05/22": 42
}