POST
/
api
/
public
/
gyms
curl --request POST \
  --url https://api.wodup.dev/api/public/gyms \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "info@antarctica-fitness.com",
  "name": "Antarctica Fitness",
  "platform_id": "1",
  "time_zone": "Antarctica/South_Pole",
  "units": "imperial"
}'
{
  "email": "info@antarctica-fitness.com",
  "id": "gym_abc123",
  "name": "Antarctica Fitness",
  "time_zone": "Antarctica/South_Pole"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
Gym parameters

POST body for creating a gym

email
string
required

Email address

name
string
required

Gym name

platform_id
string
required

ID of gym on source platform

time_zone
string
required

Time zone

units
enum<string>

Units

Available options:
imperial,
metric

Response

201 - application/json
Gym

An organization on WodUp

email
string
required

Gym email address

id
integer
required

Gym ID

name
string
required

Gym name

time_zone
string
required

Gym time zone