Changing the roster

  • POST /api/v1/team/members (scope members.add) puts a recruit on your roster from a steamId and a name. DELETE /api/v1/team/members/{steamId} (scope members.remove) takes a player off it. Each scope works only while whoever made the key can do the same on the website (roster file upload for adding, remove players for removing).
  • The steamId is the whole SteamID64, sent as text in quotes: exactly 17 digits, starting 7656119. A short, long or spaced one, a number instead of text, or an ID in another Steam format is refused with 400 and nothing is saved. Nothing is trimmed, repaired or guessed. A name is one line of up to 64 characters with no space at either end and not starting with =, + or @. Unknown fields are refused too.
  • Adding never makes an account or a member. If the Steam ID is a linked site account the entry is that person (linked: true); otherwise it waits for them to link Steam. A Steam ID already on your roster is 409 already_on_roster; one active on another team is 409 on_other_team.
  • Removing ends the roster entry and keeps the history. A site member who is only a player leaves the team too, and their team roles end. The Team Leader (leader_cannot_be_removed) and Team Reps (rep_cannot_be_removed_by_api) are never removed here, nor is someone who holds a team role with powers (role_above_you): do those on the website. A Steam ID that is not on your roster is 404 player_not_found.
  • Your tools may make 60 adds and removals an hour (429 roster_write_limit, Retry-After 3600), so a loop that goes wrong cannot empty a roster.
  • Every add and removal is on the audit log with the key, the time, the player’s name and the last four digits of the Steam ID, never the whole ID. A refusal by a roster rule is logged too, with the time and the reason. The Team Leader gets the usual roster bell line.
  • A test key answers the same, changes nothing real, and treats 76561199999999999 as always on another team so you can try that refusal.