API
identity.setGameActivity
API
identity.setGameActivity
Sets the current identity's game activity. This activity will automatically be removed when the identity goes offline.
POST https://identity.api.rivet.gg/v1/identities/self/activity
curl -X POST -d '@body.json' 'https://identity.api.rivet.gg/v1/identities/self/activity'
Authorizations
Authorization[header]required
string
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
game_activityrequired
object
Information about the identity's current game. This is information that all other identities can see about what the current identity is doing.
curl -X POST -d '@body.json' 'https://identity.api.rivet.gg/v1/identities/self/activity'