POST
/
athletes
curl --request POST \
  --url https://api.uplift.ai/v1/athletes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "first_name": "<string>",
  "last_name": "<string>",
  "date_of_birth": "<string>",
  "email": "<string>",
  "height": 123,
  "weight": 123,
  "custom_attributes": {}
}'
{
  "athlete": {}
}

Custom Attributes

  • custom_attributes (object)
    • A set of user-defined key-value pairs for additional attributes.
    • Key Format Rules:
      • Must contain only alphanumeric characters, underscores (_), or dashes (-).
      • Must start with a letter or underscore.
      • Must avoid spaces and special characters (e.g., @, #, $, etc.).
      • Reserved keywords (e.g., first_name, last_name, date_of_birth, email, height, weight, and DOB) cannot be used as keys.
    • Value:
      • Must be a string.

Example Request Body

{
  "first_name": "John",
  "last_name": "Doe",
  "date_of_birth": "1990-01-01",
  "email": "john.doe@example.com",
  "height": 70,
  "weight": 180,
  "custom_attributes": {
    "team": "Team A",
    "position": "left fielder"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

Athlete created successfully.

The response is of type object.