v1

latestOpenAPI 3.0.02026-07-24226294602.4 KB
Workout

Search Workouts

Search Workouts given a query.

get/workouts/search

Query parameters

sortstring

Specifies the order in which the list will be returned. Default order is ascending. Default sort attribute is Id. Specify desc_ to sort descending format: "sort=desc_snake_cased_attribute_name" OR "sort=snake_cased_attribute_name" ex. sort=desc_updated_on

pageinteger

Specifies the page of records to be returned. Defaults to 1.

page_sizeinteger

Number of records to return per page. Maximum and default are 100 records.

qstring required

Search query. See the Search section for guidance on how to build a query.

Headers

x-api-keystring required

A valid API key. If you don't have one, please request one through the Web Integrations screen.

Response

Workout found

wodify_validation_resultstring

The purpose of this attribute is to save any UserException message, that is, and user friendly message that should be shown to the end user.

Example response

{
  "workouts": [
    {
      "date": "2014-12-31",
      "internal_publish_date": "2014-12-31",
      "internal_publish_time": "23:59:59",
      "blog_publish_date": "2014-12-31",
      "blog_publish_time": "23:59:59",
      "ownership_level_id": 1234567891234567,
      "program_id": 1234567891234567,
      "copied_from_workout_id": 1234567891234567,
      "created": {
        "created_by_id": 1234567891234567,
        "created_on_datetime": "2014-12-31T23:59:59.938Z"
      },
      "updated": {
        "updated_by_id": 1234567891234567,
        "updated_on_datetime": "2014-12-31T23:59:59.938Z"
      }
    }
  ]
}