PUT
/
api
/
public
/
athletes
/
{id}
/
staff
curl --request PUT \
  --url https://api.wodup.dev/api/public/athletes/{id}/staff \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "staff": "admin"
}'
{
  "access": "member",
  "added_at": "2001-01-01T00:00:00Z",
  "email": "jane@smith.com",
  "followed_programs": [
    {
      "access": "private",
      "id": "p_123abc",
      "name": "Strength and Conditioning",
      "period": "continuous",
      "status": "active"
    }
  ],
  "gender": "female",
  "id": "ath_123abc",
  "invite_url": "https://www.wodup.com/invite/abc123",
  "name": "Jane Smith",
  "staff": "admin"
}

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

Path Parameters

id
string
required

ID of athlete to update staff for

Body

application/json
athlete params
staff
enum<string>
required

Staff level

Available options:
admin,
coach,
none

Response

200 - application/json
athlete response

An athlete at your organization

access
enum<string>
required

Athlete access

Available options:
member,
marketplace,
archived,
deleted
added_at
string
required

Date athlete initially added to your organization. ISO8601 timestamp in UTC

email
string
required

Athlete email address

followed_programs
object[]
required

List of programs the athlete follows on their timeline

A program at your organization

id
string
required

Athlete ID

invite_url
string
required

A URL that allows a user to claim this athlete account.

name
string
required

Athlete name

gender
enum<string>

Athlete gender

Available options:
male,
female,
nonbinary,
undisclosed
staff
enum<string>

Athlete staff

Available options:
admin,
coach