POST
/
api
/
public
/
programs
curl --request POST \
  --url https://api.wodup.dev/api/public/programs \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "access": "all_members",
  "name": "New Program",
  "period": "continuous",
  "status": "active"
}'
{
  "access": "all_members",
  "id": "p_123abc",
  "name": "New Program",
  "period": "continuous",
  "status": "active"
}

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

Body

application/json
Create program params

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

200 - application/json
Create program response

A program at your organization

id
integer
required

Program ID

name
string
required

Program name

status
enum<string>
required

Program status

Available options:
active,
archived
access
enum<string>

Program access

Available options:
all_members,
private
period
enum<string>

Program period

Available options:
continuous,
fixed,
template