Perform a batch update of player activity from a socket server.
POST /api/v1/socket-server/activity HTTP/1.1
Authorization: Signature ...
Content-Type: application/json
[{
"playerId": "6d57b549-55c5-4767-8a7d-07f5c5c03b2e",
"activity": "In Terminal",
"online": true
},{
"playerId": "517c686c-4125-4115-a113-4a2af3d1e267",
"online": true
},{
"playerId": "9fe3aca0-a7dd-42b0-b467-fb2f61a50439",
"online": false
}]
----------------------------------------
HTTP/1.1 204 No Content
ETag: W/"a-bAsFyilMr4Ra1hIU5PyoyFRunpI"Authentication is required and restricted to system processes. Requests should be signed using a System key.
NONE
The request body is an array of batch operations, see type Activity.
| Name | Description | Value |
|---|---|---|
| playerId | the player ID to update | string |
| online | whether or not this player is online | boolean |
| activity | a text description of the player's current activity, which will be displayed to other users; if not provided (and if the user is still online) their previous activity is retained optional | string |
Successful responses are code 204. Error responses are standard.
NONE