Working with the API
Athletes
Movements
Wods
Create a WOD
POST
/
api
/
public
/
wods
Create a WOD
Copy
curl --request POST \
--url https://api.wodup.dev/api/public/wods \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"components": [
{
"is_alternating": false,
"notes": "Aim for an 80% effort today.",
"notes_for_coaches": "Try to complete this section in 10 minutes.",
"order": 0,
"partners": 0,
"post_instructions": null,
"pre_instructions": "Make sure to warm up your hips first.",
"prefix": "A",
"results_count": 0,
"workout": {
"details": {
"movements": [
{
"id": "mv_fT0m3viH",
"load": null,
"reps": "5"
}
],
"rest": {
"type": "as_needed"
},
"type": "Strength"
},
"type": "Strength"
}
}
],
"name": "Morning Workout",
"occurs_on": "2020-01-01",
"order": 0,
"program_id": "p_123abc",
"publish_at": "2020-01-01T00:00:00Z"
}'
Copy
{
"components": [
{
"id": "wc_123abc",
"is_alternating": false,
"notes": "Aim for an 80% effort today.",
"notes_for_coaches": "Try to complete this section in 10 minutes.",
"order": 0,
"partners": 0,
"post_instructions": null,
"pre_instructions": "Make sure to warm up your hips first.",
"prefix": "A",
"results_count": 0,
"workout": {
"description": "Back Squat 5 reps",
"details": {
"movements": [
{
"id": "mv_fT0m3viH",
"load": null,
"reps": "5"
}
],
"rest": {
"type": "as_needed"
},
"type": "Strength"
},
"movements": [
{
"complex_details": null,
"description": null,
"has_calories": false,
"has_distance": false,
"has_duration": false,
"has_height": false,
"has_load": true,
"has_power": false,
"has_reps": true,
"id": "mv_fT0m3viH",
"name": "Back Squat",
"source": "wodup",
"video": {
"id": "dQw4w9WgXcQ",
"service": "youtube"
}
}
],
"name": null,
"type": "Strength"
}
}
],
"id": "wod_123abc",
"name": "Morning Workout",
"occurs_on": "2020-01-01",
"order": 0,
"program": {
"access": "private",
"id": "p_123abc",
"name": "Strength and Conditioning",
"period": "continuous",
"status": "active"
},
"publish_at": "2020-01-01T00:00:00Z"
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Headers
Only used by platform integrations
ID of gym to execute on behalf of
Body
application/json
WOD params
POST body for creating a wod
Response
201 - application/json
Create WOD response
Response schema for creating a wod
Create a WOD
Copy
curl --request POST \
--url https://api.wodup.dev/api/public/wods \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '{
"components": [
{
"is_alternating": false,
"notes": "Aim for an 80% effort today.",
"notes_for_coaches": "Try to complete this section in 10 minutes.",
"order": 0,
"partners": 0,
"post_instructions": null,
"pre_instructions": "Make sure to warm up your hips first.",
"prefix": "A",
"results_count": 0,
"workout": {
"details": {
"movements": [
{
"id": "mv_fT0m3viH",
"load": null,
"reps": "5"
}
],
"rest": {
"type": "as_needed"
},
"type": "Strength"
},
"type": "Strength"
}
}
],
"name": "Morning Workout",
"occurs_on": "2020-01-01",
"order": 0,
"program_id": "p_123abc",
"publish_at": "2020-01-01T00:00:00Z"
}'
Copy
{
"components": [
{
"id": "wc_123abc",
"is_alternating": false,
"notes": "Aim for an 80% effort today.",
"notes_for_coaches": "Try to complete this section in 10 minutes.",
"order": 0,
"partners": 0,
"post_instructions": null,
"pre_instructions": "Make sure to warm up your hips first.",
"prefix": "A",
"results_count": 0,
"workout": {
"description": "Back Squat 5 reps",
"details": {
"movements": [
{
"id": "mv_fT0m3viH",
"load": null,
"reps": "5"
}
],
"rest": {
"type": "as_needed"
},
"type": "Strength"
},
"movements": [
{
"complex_details": null,
"description": null,
"has_calories": false,
"has_distance": false,
"has_duration": false,
"has_height": false,
"has_load": true,
"has_power": false,
"has_reps": true,
"id": "mv_fT0m3viH",
"name": "Back Squat",
"source": "wodup",
"video": {
"id": "dQw4w9WgXcQ",
"service": "youtube"
}
}
],
"name": null,
"type": "Strength"
}
}
],
"id": "wod_123abc",
"name": "Morning Workout",
"occurs_on": "2020-01-01",
"order": 0,
"program": {
"access": "private",
"id": "p_123abc",
"name": "Strength and Conditioning",
"period": "continuous",
"status": "active"
},
"publish_at": "2020-01-01T00:00:00Z"
}
Assistant
Responses are generated using AI and may contain mistakes.