v1

latestOpenAPI 3.0.02026-07-24226294602.4 KB
Criteria

Update Criteria

Update a Criteria in a Level in a Progression.

put/progressions/{progression_id}/levels/{level_id}/criteria/{criteria_id}

Path parameters

progression_idinteger required

progression id

level_idinteger required

level id

criteria_idinteger required

criteria 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_appstring

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

count_requiredinteger

Count required to pass this Tracker

is_required_auto_promotionstring

True if this Criteria is required for promotion

criteria_time_type_idinteger

Identifies the Time Type for Time Criteria

Response

Data of the updated 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
      }
    ]
  }
}