v1

latestOpenAPI 3.0.02026-07-24226294602.4 KB
Criteria

Create Criteria

Add a Criteria to a Level in a Progression.

post/progressions/{progression_id}/levels/{level_id}/criteria

Path parameters

level_idinteger required

level id

progression_idinteger required

Progression Id

Headers

x-api-keystring required

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

Request body

criteriastring

Criteria Name

descriptionstring

Description of the Tracker for display to Clients

criteria_type_idinteger

Identifies the Criteria Type

is_visible_in_appboolean

If true, this Criteria is visible to Clients in the Mobile App

count_requiredinteger

Count required to pass this Tracker

is_required_auto_promotionboolean

True if this Criteria is required for promotion

criteria_time_type_idinteger

Identifies the Time Type for Time Criteria

criteria_attendance_programsinteger[]

Example request

{
  "criteria_attendance_programs": [
    1234567891234567
  ]
}

Response

Data of the created Criteria

level_idinteger

Level Id

levelstring

Level name

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

{
  "level_id": 1234567891234567,
  "criteria": {
    "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"
    },
    "criteria_attendance_programs": [
      {
        "program_id": 1234567891234567
      }
    ]
  }
}