Skip to content

/session/player/leave

DELETE https://api.sandbox-gameye.gameye.net/session/player/leave

Section titled “DELETE https://api.sandbox-gameye.gameye.net/session/player/leave”
FieldTypeRequiredDescriptionExample
playersarrayYesThe list of player ID’s to join this session.""
cURL
curl --location --request DELETE 'https://api.sandbox-gameye.gameye.net/session/player/leave' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"players": []
}'
javascript
var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"players": []
});
var requestOptions = {
method: 'DELETE',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://api.sandbox-gameye.gameye.net/session/player/leave", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.sandbox-gameye.gameye.net/session/player/leave")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Accept"] = "application/json"
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"players": []
})
response = https.request(request)
puts response.read_body
Python
import requests
import json
url = "https://api.sandbox-gameye.gameye.net/session/player/leave"
payload = json.dumps({
"players": []
})
headers = {
'Accept': 'application/json',
'Content-Type': 'application/json'
}
response = requests.request("DELETE", url, headers=headers, data=payload)
print(response.text)

One or more player IDs have been removed from the session.

FieldTypeRequired
countintegerYes
playersarrayYes
// One or more player IDs have been removed from the session.
{
"count": 0,
"players": [
""
]
}

You are not authorized to use this endpoint. Please make sure that the included bearer token is correct.

FieldTypeRequired
statusCodeintegerYes
codestringYes
messagestringYes
detailsstringYes
pathstringYes
timestampstringYes
identifierstringYes
violationsarrayNo
// You are not authorized to use this endpoint. Please make sure that the included bearer token is correct.
{
"statusCode": 0,
"code": "",
"message": "",
"details": "",
"path": "",
"timestamp": "",
"identifier": "",
"violations": [
{
"field": "",
"description": ""
}
]
}

The provided session does not exist.

FieldTypeRequired
statusCodeintegerYes
codestringYes
messagestringYes
detailsstringYes
pathstringYes
timestampstringYes
identifierstringYes
violationsarrayNo
// The provided session does not exist.
{
"statusCode": 0,
"code": "",
"message": "",
"details": "",
"path": "",
"timestamp": "",
"identifier": "",
"violations": [
{
"field": "",
"description": ""
}
]
}

Bad request. This may imply that the given request has invalid syntax.

FieldTypeRequired
statusCodeintegerYes
codestringYes
messagestringYes
detailsstringYes
pathstringYes
timestampstringYes
identifierstringYes
violationsarrayNo
// Bad request. This may imply that the given request has invalid syntax.
{
"statusCode": 0,
"code": "",
"message": "",
"details": "",
"path": "",
"timestamp": "",
"identifier": "",
"violations": [
{
"field": "",
"description": ""
}
]
}