Presence
Update presence (server-to-server)
Update presence information for users. Requires challenge authentication.
Authorization<token>
Integrity token authentication (format "Integrity ")
In: header
typestring
Value in
"location"toarray<integer>
mode?string
Value in
"join" | "leave"instance?string
world?string
Response Body
application/json
application/json
application/json
curl -X POST "https://nox.hactazia.fr/api/presence" \ -H "Content-Type: application/json" \ -d '{ "type": "location", "to": [ 0 ] }'{
"success": true
}{
"error": {
"message": "You are not logged in.",
"code": 7,
"status": 401
},
"data": null
}{
"error": {
"message": "Server not found.",
"code": 11,
"status": 404
}
}