Bifrost Bifrost
POSThttps://api.dev.bifrostgaming.com/v1/graphql

guildTeamSwap

v1

Move a player to the opposite team on a game server.

Operation Type

Mutation

Rate Limit: 150 requests per 5 minutes per server

Bulk team swaps are supported within the rate limit window.

Input Fields

FieldTypeRequiredDescription
serverIdID!RequiredThe server ID.
playerIdString!RequiredPlayer's Steam ID.
gameTypeStringOptionalGame type identifier (e.g. "HLL").

Code Examples

curl -X POST https://api.dev.bifrostgaming.com/v1/graphql \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -d '{
    "query": "mutation GuildTeamSwap($serverId: ID!, $playerId: String!, $gameType: String) { guildTeamSwap(serverId: $serverId, playerId: $playerId, gameType: $gameType) { success message } }",
    "variables": {
      "serverId": "YOUR_SERVER_ID",
      "playerId": "76561198000000000",
      "gameType": "HLL"
    }
  }'

Postman Collection

Download a ready-to-use Postman collection for this endpoint. Import it into Postman to start testing immediately.

How to import into Postman
  1. Open Postman and click Import (top-left)
  2. Drag and drop the downloaded .json file, or click Upload Files and select it
  3. Click Import to confirm
  4. The collection appears in your sidebar — expand it and select the request
  5. In the Body tab, update the placeholder values (your-partner-id, etc.) with your actual credentials
  6. Click Send

The collection uses Postman's GraphQL body type, which provides syntax highlighting and variable editing. Make sure your Postman version is 7.2+ for GraphQL support.

Success Response200

{
  "data": {
    "guildTeamSwap": {
      "success": true,
      "message": "Player swapped to opposing team"
    }
  }
}

Error Responses

In partnership with

Brilliant game servers for communities large and small.

Get yours today!

Shrapnelworks Logo

A Shrapnelworks product