Competitions and the leagues a gym hosts, scoring and courses, reruns, analytics, volunteer plans, sports and teams.
Ask it in plain words
"Add our spring qualifier on March 14."
"Which obstacle had the most falls last weekend?"
"Copy last competition's volunteer shifts."
get_competitions
Competitions Reads
The gym's competitions with their details: type, league and tier, dates, entry price, registration dates, capacity, links, wave times, description and whether it is shown on the website. Details only: athletes and registrations stay in the back office (get_registration_numbers gives totals).
Parameter
Type
Description
include_past
boolean
true = also past competitions (default: upcoming only)
Create a competition (owners and managers). Ask the owner for the name, type, date, entry price and league; never guess them. It is saved as a hidden draft unless show_on_website is true; families can register once it is shown and has an entry price. Divisions, registrations and the run order are handled in the back office.
Parameter
Type
Description
namerequired
string
e.g. Fall Ninja Classic (up to 120 characters)
competition_type
string: challenge | flow | skills | speed | stage | ocr | team | other
challenge = Challenge course, flow = Flow course, skills = Skills competition, speed = Speed / head to head, stage = Stages (ninja warrior style), ocr = Obstacle course race, team = Team competition. Families see it when they register
league
string
e.g. WNL or UNAA; empty for the gym's own local event
tier
string
e.g. Tier 1, Tier 2, Qualifier (Tier 1 adds the Elite division)
first_dayrequired
string
YYYY-MM-DD
last_day
string
YYYY-MM-DD, only when it runs over several days; empty to clear
ages_counted_on
string
YYYY-MM-DD: the date athletes' ages are counted on (WNL uses January 1 of the championship year)
entry_price
number
Dollars. Online registration opens only when it is more than 0
registration_opens
string
YYYY-MM-DD; empty = open now
registration_closes
string
YYYY-MM-DD, end of that day; empty = open until the competition
capacity
integer
Most paid athletes; 0 = no limit
live_stream_link
string
YouTube link; empty to remove
results_link
string
Link to the results; empty to remove
league_page_link
string
The league's page for this tier; empty to remove
ninja_master_event
string
The Ninja Master event's link or number; empty to remove
registration_where
string: here | ninja_master | sportsengine | other
Where families register: here = the gym's own website with online checkout; ninja_master, sportsengine or other = on that site (UNAA and NSC usually use Ninja Master, FINA SportsEngine). Then the Register buttons say "Register on Ninja Master" and open registration_link; the competition page, countdown, live stream, run order and results stay on the gym's website
registration_link
string
The https link to the competition's registration on that other site; empty to remove
ninjaworks_competition
string
The NinjaWorks timing competition link or number (live results and who is on the course); empty to remove
wave_times
string
The league's wave schedule: a day on its own line, then one line per wave like Teens | 9AM. When one competition covers two courses (a double header), put a line naming each course before its waves, like Flow course
description
string
Shown on the competition's page (up to 4,000 characters)
flyer
string
The name of a flyer the gym already has (get_special_events lists flyers); empty to remove. New flyers are added with upload_photo, purpose event_flyer
show_on_website
boolean
true = published on the website (registration can open); false = a hidden draft
location
string
Which location it is at, by name (only for gyms with several locations); empty = every location
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Which leagues' competitions the gym hosts (World Ninja League, UNAA, NSC, FINA, or its own competitions), whether the owner set it or it is worked out from the gym's competitions, and whether the website uses World Ninja League wording (the WNL steps, tiers and stats show only for a WNL gym).
Set which leagues' competitions the gym hosts (owners and managers). The Competitions page then talks only about those leagues (World Ninja League wording, the tier key and the WNL first-competition steps show only for WNL; other gyms get plain first-competition steps), and a new competition starts with the gym's league (WNL Tier 2, else the first league with no tier). Where families register for each competition is set with update_competition (registration_where, registration_link).
Parameter
Type
Description
leaguesrequired
array of WNL | UNAA | NSC | FINA | local
Every league whose competitions the gym hosts; local = the gym's own competitions with no league. An empty list goes back to working it out from the gym's competitions
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
A competition's analytics from NinjaWorks timing or from runs scored in NinjaHQ (competitions with a NinjaWorks number, or scored on a phone in the back office): runs, course clears, the obstacle with the most falls, the obstacle with the most retries, the fastest clear, and every obstacle with its type, how many tried and the share who made it. Results are public on the competition's analytics page.
Set the type of obstacles on a competition's analytics page (owners and managers): Balance, Swing & Lache, Upper Body & Grip, Moving Obstacles, Jumps & Precision, Walls & Climbing, Other. Types are guessed from the obstacle's name; this corrects them. The same obstacle keeps its type at later competitions.
Competition scoring: who is up, the course and the runs Reads
For a competition the gym scores itself in NinjaHQ (its own or a practice competition, never one a league system scores): the course (format, obstacles, time limits), who is on the course, who is next and on deck, how many have run, and every run with its result. Each run has an id for fix_competition_run, give_competition_rerun and remove_competition_run.
Set up or change the course of a competition the gym scores itself in NinjaHQ (owners and managers): the format, the obstacles in order and the time limit, with a different limit for some divisions. Once athletes have run, only obstacle names and time limits can change. Never for a competition a league system scores.
Parameter
Type
Description
competitionrequired
string
The competition's name
formatrequired
string: Flow | Challenge | Full Course | NSC | Our Own Rules
Flow: the first fall ends the run. Challenge: 2 retries per run, 1 per obstacle, the clock stops during a reset. Full Course: a fall moves on to the next obstacle, no retries, the run ends at the buzzer or the time limit. NSC: up to 3 tries on each obstacle, a third fall on the same obstacle ends the run, the clock keeps running. Our Own Rules: see own_rules.
obstaclesrequired
array of string
The obstacle names in the order athletes meet them; the last one is the buzzer
time_limit
string
Minutes and seconds like "2:30"; empty for no time limit
division_time_limits
array of object
Only the divisions whose limit differs from time_limit
division_time_limits[].divisionrequired
string
The division's name as in the competition, e.g. 11-12 Girls
division_time_limits[].time_limitrequired
string
That division's limit in minutes and seconds, like "3:00"
own_rules
object
Only with Our Own Rules
own_rules.after_a_fall
string: the run ends | move on to the next obstacle | retry the obstacle
What happens when an athlete falls
own_rules.falls_that_end_the_run
integer
How many falls end the run (0 for no limit)
own_rules.retries_per_run
integer
How many retries an athlete has in the whole run
own_rules.retries_per_obstacle
integer
How many retries an athlete has on one obstacle
own_rules.clock_during_a_reset
string: stops | keeps running
Whether the run clock stops while an obstacle is reset
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Correct a run scored in NinjaHQ: an obstacle's result (cleared, fell, time ran out, not reached), the clock when it happened, or its retries. The time that counts is the clock at the last cleared obstacle. Who made the fix, when and why are kept, and what the judge's taps said stays visible in the back office. The results, live page and analytics update at once.
Parameter
Type
Description
competitionrequired
string
The competition's name
run_id
string
The run's id from get_competition_scoring (or give athlete)
athlete
string
The athlete's name, when the run id isn't known
obstaclesrequired
array of object
Only the obstacles to change; the others stay as they are
obstacles[].numberrequired
integer
The obstacle's number on the course, from 1
obstacles[].result
string: cleared | fell | time ran out | not reached
What happened on the obstacle
obstacles[].clock
string
The run clock when it happened, like "1:16.05"
obstacles[].retries
integer
How many retries the athlete used on it
ended_by
string: a fall | time ran out | ended early
Only matters when not every obstacle was cleared
reasonrequired
string: Tapped Late | Wrong Button | Judge's Call | Video Review | Other
Why the run is being fixed
note
string
Why the run was corrected, kept with the fix
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Give an athlete a re-run after a course problem (an obstacle broke, someone got in the way, the clock was wrong) at a competition scored in NinjaHQ. The first run is kept, marked as re-run given, and no longer counts; the athlete goes back on the run list after a five-minute rest and only the re-run counts.
Parameter
Type
Description
competitionrequired
string
The competition's name
run_id
string
The run's id from get_competition_scoring (or give athlete)
athlete
string
The athlete's name, when the run id isn't known
reasonrequired
string: An Obstacle Broke or Moved | Someone or Something Got in the Way | The Clock Was Wrong | Other
What went wrong on the course
note
string
What went wrong, e.g. the cargo net came loose; kept with the re-run
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Take a run out of the results of a competition scored in NinjaHQ (a run started by mistake), or put a removed run back with restore: true. Nothing is deleted: the run and its history stay, and the athlete goes back on the run list.
Parameter
Type
Description
competitionrequired
string
The competition's name
run_id
string
The run's id from get_competition_scoring (or give athlete)
athlete
string
The athlete's name, when the run id isn't known
restore
boolean
true = put a removed run back in the results
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Change a competition's details: name, type, league, tier, dates, entry price, registration dates, capacity, links, wave times, description, flyer, or whether it is shown on the website (owners and managers). Send only what changes; everything else stays as it is.
Parameter
Type
Description
competitionrequired
string
The competition's current name
new_name
string
The competition's new name
competition_type
string: challenge | flow | skills | speed | stage | ocr | team | other
challenge = Challenge course, flow = Flow course, skills = Skills competition, speed = Speed / head to head, stage = Stages (ninja warrior style), ocr = Obstacle course race, team = Team competition. Families see it when they register
league
string
e.g. WNL or UNAA; empty for the gym's own local event
tier
string
e.g. Tier 1, Tier 2, Qualifier (Tier 1 adds the Elite division)
first_day
string
YYYY-MM-DD
last_day
string
YYYY-MM-DD, only when it runs over several days; empty to clear
ages_counted_on
string
YYYY-MM-DD: the date athletes' ages are counted on (WNL uses January 1 of the championship year)
entry_price
number
Dollars. Online registration opens only when it is more than 0
registration_opens
string
YYYY-MM-DD; empty = open now
registration_closes
string
YYYY-MM-DD, end of that day; empty = open until the competition
capacity
integer
Most paid athletes; 0 = no limit
live_stream_link
string
YouTube link; empty to remove
results_link
string
Link to the results; empty to remove
league_page_link
string
The league's page for this tier; empty to remove
ninja_master_event
string
The Ninja Master event's link or number; empty to remove
registration_where
string: here | ninja_master | sportsengine | other
Where families register: here = the gym's own website with online checkout; ninja_master, sportsengine or other = on that site (UNAA and NSC usually use Ninja Master, FINA SportsEngine). Then the Register buttons say "Register on Ninja Master" and open registration_link; the competition page, countdown, live stream, run order and results stay on the gym's website
registration_link
string
The https link to the competition's registration on that other site; empty to remove
ninjaworks_competition
string
The NinjaWorks timing competition link or number (live results and who is on the course); empty to remove
wave_times
string
The league's wave schedule: a day on its own line, then one line per wave like Teens | 9AM. When one competition covers two courses (a double header), put a line naming each course before its waves, like Flow course
description
string
Shown on the competition's page (up to 4,000 characters)
flyer
string
The name of a flyer the gym already has (get_special_events lists flyers); empty to remove. New flyers are added with upload_photo, purpose event_flyer
show_on_website
boolean
true = published on the website (registration can open); false = a hidden draft
location
string
Which location it is at, by name (only for gyms with several locations); empty = every location
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Whether competition registration confirmations end with the short NinjaHQ line (US families only, once a year per family, never when the athlete's home gym is this gym), and its wording.
Turn the NinjaHQ line in confirmations on or off Changesdry_run
Switch the short NinjaHQ line at the end of competition registration confirmations on or off (owners only). The confirmation itself is unchanged either way.
Parameter
Type
Description
on
boolean
true = add the short NinjaHQ line at the end of competition registration confirmations; false = leave it out
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Delete a competition nobody has registered or volunteered for, e.g. one made by mistake (owners and managers). A competition with any registration stays: hide it instead with update_competition (show_on_website: false). Ask the owner to confirm, then send confirm: true. History in the back office can bring it back.
Parameter
Type
Description
competitionrequired
string
The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name)
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Whether families are emailed automatically before every competition when their athlete's details (home gym, picture, ninja name, Instagram) are missing, and when: the first ask, the last call and the hour they go. Settings only: families and athletes stay in the back office.
Change the athlete info follow-ups Changesdry_runconfirm
Switch the automatic athlete info follow-up emails on or off and set when they go (owners and managers). Switching them on means families are emailed automatically, and switching them off stops that, so both need the owner's yes and confirm: true. Send only what changes.
Parameter
Type
Description
automatic
boolean
true = email families automatically before every competition when details are missing
first_ask_days_before
integer
5 to 30 days before the competition
last_call_days_before
integer
2 to 7 days before (after the first ask)
send_at_hour
integer
9 to 20 (the gym's local hour, 24-hour clock)
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
The Teams page: each sport (with the classes in it), the competitive teams (sport, where their training times come from, tagline, about, highlights, how to join) and the page's headings. Teams only: athletes and team lists stay in the back office.
Add a competitive team to the Teams page, or change one's name, sport, training times entry, tagline, about, highlights or how to join (owners only). Send only what changes. Training times always come from the weekly schedule.
Parameter
Type
Description
team
string
The team's current name, to change one; leave out to add a team
name
string
e.g. Ninja Pro Team (up to 60 characters)
sport
string
A sport's name from get_sports_and_teams, or "none"
schedule_entry
string
The weekly schedule entry its training times come from (a name from get_sports_and_teams); empty = the entry with the team's name
tagline
string
One line under the name (up to 120 characters)
about
string
Up to 500 characters
highlights
array of string
Up to 8 short lines, e.g. Trains four days a week
how_to_join
string
e.g. Tryouts in August (up to 240 characters)
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Take a team off the Teams page Changesdry_runconfirm
Take a team off the Teams page (owners only). Its classes and the families' team email list stay. Ask the owner to confirm, then send confirm: true. History can bring it back.
Parameter
Type
Description
teamrequired
string
The team's id or exact name, from get_sports_and_teams
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Add a sport (ninja, parkour, chase tag...) or change one's name, short name or description, and say which classes belong to it (owners only). Only needed when the gym trains more than one sport; sports group the classes on the Classes page.
Parameter
Type
Description
sport
string
The sport's current name, to change one; leave out to add a sport
name
string
e.g. Parkour (up to 40 characters)
short_name
string
Up to 20 characters
about
string
One or two sentences for the home page and the Classes page (up to 300 characters)
classes
array of string
Class names (from get_sports_and_teams) to put in this sport; classes left out keep their sport
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
A competition's volunteer sign-up: whether it is open, the waiver and reminder settings, the note, the roles (jobs) and the shifts with how many people each role needs and how many have signed up. Numbers only: volunteers' names and contacts stay in the back office.
Parameter
Type
Description
competitionrequired
string
The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name)
Open or close volunteer sign-up Changesdry_runconfirm
Open or close a competition's volunteer sign-up page and set the waiver, the reminders and the note (owners and managers). Opening it does not email anyone; asking families to volunteer is done in the back office. Closing sign-up or turning reminders off needs confirm: true.
Parameter
Type
Description
competitionrequired
string
The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name)
sign_up_open
boolean
true = families can pick shifts on the competition's volunteer page
volunteers_sign_waiver
boolean
true = volunteers need a signed waiver in their own name
reminders
boolean
true = volunteers get a reminder email before their shift
note
string
A note on the sign-up page, e.g. Free snacks for volunteers (up to 400 characters)
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Set a competition's volunteer roles Changesdry_runconfirm
Set the volunteer jobs for a competition (obstacle reset, athlete staging, crowd control, check-in...): name, one line about it, where, and how early it starts (owners and managers). Send the whole list; a role with people signed up can't be removed, and removing any role needs confirm: true. Then set how many each shift needs with set_volunteer_shifts.
Parameter
Type
Description
competitionrequired
string
The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name)
rolesrequired
array of object
Every role (job), in order: this is the whole list. Roles are matched by name (or current_name to rename one).
roles[].namerequired
string
e.g. Obstacle reset (up to 40 characters)
roles[].current_name
string
Only to rename a role: its name now
roles[].about
string
One line volunteers see (up to 240 characters)
roles[].where
string
Where in the gym, e.g. Main floor
roles[].starts_minutes_early
integer
0 to 180: how many minutes before each shift this job starts (check-in might start 45 minutes early)
roles[].until_competition_starts
boolean
true = the job ends when the competition starts (check-in)
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Set a competition's volunteer shifts Changesdry_runconfirm
Set a competition's volunteer shifts (owners and managers): day, start and end, a label, and how many people each role needs in it (0 = not needed then). Send the whole list, keeping existing shifts by their shift_id from get_volunteer_plan. A shift with people signed up can't be removed; removing any shift needs confirm: true.
Parameter
Type
Description
competitionrequired
string
The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name)
shiftsrequired
array of object
Every shift: this is the whole list. Keep a shift by sending its shift_id.
shifts[].shift_id
string
From get_volunteer_plan, to keep an existing shift (its sign-ups stay with it); leave out for a new shift
shifts[].dayrequired
string
YYYY-MM-DD: one of the competition's days or the day before or after
shifts[].startrequired
string
e.g. 8:00 AM or 08:00
shifts[].endrequired
string
e.g. 12:00 PM or 12:00
shifts[].label
string
e.g. Morning (up to 60 characters)
shifts[].needs
object
How many people each role needs in this shift, by role name, e.g. { "Obstacle reset": 4 }. Roles left out keep their number (0 for a new shift).
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Copy a day's volunteer shifts Changesdry_runconfirm
Copy one day's volunteer shifts to another day of the competition, or to the other competition of the same weekend (owners and managers). The shifts already on the day copied to are replaced, so that needs confirm: true; a day with people signed up is left alone.
Parameter
Type
Description
competitionrequired
string
The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name)
from_dayrequired
string
YYYY-MM-DD: the day to copy
to_dayrequired
string
YYYY-MM-DD: the day to copy to
to_competition
string
Only to copy to the other competition of the same weekend: its name
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.
Start the volunteer shifts again Changesdry_runconfirm
Put a competition's volunteer roles and shifts back to the standard ones made from its wave times (owners and managers). Only before anyone signs up. Ask the owner to confirm, then send confirm: true.
Parameter
Type
Description
competitionrequired
string
The competition's name (add its date in brackets, e.g. Fall Classic (2026-03-06), when two have the same name)
confirm
boolean
Must be true, after the owner has said yes
dry_run
boolean
true = only show what would change, save nothing. Use it first for anything the owner hasn't seen yet.