Update Athlete
Use this endpoint to update an athlete’s attributes. You can modify all attributes, following specific rules for certain fields and custom attributes. Include only the attributes you wish to update or new custom attributes to add in the request body.
Attribute Modification
All attributes of the athlete can be updated. Include only the attributes you wish to change — omitted attributes are left unchanged. The following rules apply:-
String Attributes:
- String values can be updated to any non-empty string.
- String values can be set to an empty string (
"") ornullto clear the attribute.
-
Integer Attributes:
- Integer values can be updated to any valid integer.
- Integer values can be set to
0ornullto clear the attribute.
-
Special Rules for
first_name:- The
first_nameattribute, if included, cannot be empty. It must always contain a non-empty string.
- The
-
Custom Attributes (
custom_attributes):- Updates are merged with the athlete’s existing custom attributes:
- Keys omitted from the request are left unchanged.
- Keys set to a non-empty string are created or updated.
- Keys set to
nullare deleted from thecustom_attributesobject.
- Empty strings (
"") and non-string values are not valid custom attribute values and return a400error. - New custom attributes must follow the same key rules as described in the
createAthleteendpoint.
- Updates are merged with the athlete’s existing custom attributes:
Example Request
last_name and weight are cleared, email is updated, the team and position custom attributes are created or updated, and the sport custom attribute is deleted.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier for the athlete record to be retrieved.
Body
The first name of the athlete.
Note: This is the minimum required field.
The last name of the athlete.
The date of birth of the athlete, formatted as YYYY-MM-DD
The athlete's email address.
The athlete's phone number.
The athlete's gender. Allowed values: male, female, non-binary, prefer_not_to_say.
male, female, non-binary, prefer_not_to_say The height of the athlete, in inches.
The weight of the athlete, in pounds (lbs).
Dominant arm. Allowed values: left, right, both.
left, right, both Dominant leg. Allowed values: left, right, both.
left, right, both Primary sport or activity. Allowed values: baseball, softball, tennis, basketball, golf.
baseball, softball, tennis, basketball, golf Positions for the athlete's activity. Requires activity to be set. baseball/softball: pitcher, catcher, first_base, second_base, third_base, shortstop, left_field, center_field, right_field, designated_hitter. basketball: point_guard, shooting_guard, small_forward, power_forward, center.
Competition level. Allowed values: youth, high_school, college, professional.
youth, high_school, college, professional A set of custom key-value attributes, merged with the athlete's existing custom attributes. Keys must be strings, and values must be non-empty strings or null. Keys omitted from the request are left unchanged, keys set to a non-empty string are created or updated, and keys set to null are deleted.
Response
Athlete updated successfully.