Update Player Presence Self
PATCH/presence/v1/player/me/presence
Update the player's online status and other presence data. If the player reports their online status as online or away, their "last_seen" presence info is updated. Player clients are expected to send requests to this endpoint on an interval of self_ping_interval_seconds. Otherwise they will be considered offline.
Request
- application/json
Body
required
Possible values: [online, away, invisible, offline]
An enumeration.
Possible values: <= 256 characters
Optional custom message to display alongside the user's online status. Leaving this unset will not change the value.
Disables notifications and invites. Leaving this unset will not change the value.
custom_data
object
custom fields for the player to update about their presence. Custom data with a null value will be removed
Responses
- 200
- 403
- 422
- 500
Successful Response
Response Headers
ETag
string
Used to identify this version of the content. Provide with a get request to avoid downloading the same data multiple times.
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Default value: true
{
"auth_success": true,
"error_code": "string",
"desc": "string"
}