Link a social account for a represented athlete
Backs the ‘I have their login creds’ tab of the Link Social Media modal (ENG-1473). The agent completes the platform’s OAuth flow in their own browser using credentials the athlete gave them, and the authorisation is stored against the athlete. *
- Deliberately separate from the athlete’s own updateInstagramAuth / updateTiktokAuth / updateTwitterAuth: those resolve the user from the access token, so an agent calling them would attach the athlete’s account to their own profile instead.
- The other tab issues a link the athlete opens themselves; see POST /agent/athletes//social-link-token.
POST
Link a social account for a represented athlete
Authorizations
JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.
Path Parameters
Athlete user id. Must be on the authenticated agent's roster.
Example:
28550
Available options:
instagram, tiktok, twitter Body
application/json