Unlink a social account from a represented athlete
Disconnects one platform from the Edit Profile modal’s Social Media list (ENG-1464). Authorization runs through the active agent_athletes relationship, so an agent can only unlink an account on their own roster. *
- Clears exactly what the athlete’s own
POST /disconnectSocialMediaclears, so a row unlinked by either side ends up in the same state: the credentials, the handle and the cached follower counts all go, not just the authorised flag. Instagram additionally has its token revoked with Meta. A revoke that fails does not block the unlink, because a row still reporting a connection the agent ended would be worse than a stale token. - No request body. Unlinking a platform that was not connected returns 200 and changes nothing, which is what the modal is already showing.
DELETE
Unlink a social account from 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