Skip to main content
POST
Create a program

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Headers

wodup-gym
string

Only used by platform integrations
ID of gym to execute on behalf of

Example:

"gym_123abc"

Body

application/json

POST body for creating a program

access
enum<string>
required

Whether all members can access the program, or only people on the access list

Available options:
all_members,
private
name
string
required

Program name

period
enum<string>
required

Whether program is a daily group program (continuous) or fixed-length (fixed). Note that this can not be changed after a program is created.

Available options:
continuous,
fixed
color
string

Hex code for color associated with this program

status
enum<string>

Program status

Available options:
active,
archived

Response

Create program response

A program at your organization

id
string
required

Program ID

name
string
required

Program name

status
enum<string>
required

Program status. Archived programs are returned as inactive.

Available options:
active,
inactive
access
enum<string>

Program access. athlete is a personal-training program belonging to a single athlete.

Available options:
all_members,
private,
athlete
period
enum<string>

Program period

Available options:
continuous,
fixed,
template