/session/{id}
DELETE https://api.sandbox-gameye.gameye.net/session/{id}
Section titled “DELETE https://api.sandbox-gameye.gameye.net/session/{id}”Stops an active session from running by killing the underlying container. The container is killed by sending in a SIGTERM signal.
Code Examples
Section titled “Code Examples”curl --location --globoff --request DELETE 'https://api.sandbox-gameye.gameye.net/session/{id}' \--header 'Accept: application/json' \--header 'Content-Type: application/json'var myHeaders = new Headers();myHeaders.append("Accept", "application/json");myHeaders.append("Content-Type", "application/json");
var requestOptions = { method: 'DELETE', headers: myHeaders, redirect: 'follow'};
fetch("https://api.sandbox-gameye.gameye.net/session/{id}", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));require "uri"require "json"require "net/http"
url = URI("https://api.sandbox-gameye.gameye.net/session/{id}")
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"
response = https.request(request)puts response.read_bodyimport requestsimport json
url = "https://api.sandbox-gameye.gameye.net/session/{id}"
payload = {}headers = { 'Accept': 'application/json', 'Content-Type': 'application/json'}
response = requests.request("DELETE", url, headers=headers, data=payload)
print(response.text)Responses
Section titled “Responses”The session has successfully been terminated.
// The session has successfully been terminated.You are not authorized to stop a session. Please make sure that the included bearer token is correct.
| Field | Type | Required |
|---|---|---|
statusCode | integer | Yes |
code | string | Yes |
message | string | Yes |
details | string | Yes |
path | string | Yes |
timestamp | string | Yes |
identifier | string | Yes |
violations | array | No |
// You are not authorized to stop a session. Please make sure that theincluded bearer token is correct.
{ "statusCode": 0, "code": "", "message": "", "details": "", "path": "", "timestamp": "", "identifier": "", "violations": [ { "field": "", "description": "" } ]}The specified session does not exist. Please provide a correct session id.
| Field | Type | Required |
|---|---|---|
statusCode | integer | Yes |
code | string | Yes |
message | string | Yes |
details | string | Yes |
path | string | Yes |
timestamp | string | Yes |
identifier | string | Yes |
violations | array | No |
// The specified session does not exist. Please provide a correct session id.
{ "statusCode": 0, "code": "", "message": "", "details": "", "path": "", "timestamp": "", "identifier": "", "violations": [ { "field": "", "description": "" } ]}This session has already been terminated.
| Field | Type | Required |
|---|---|---|
statusCode | integer | Yes |
code | string | Yes |
message | string | Yes |
details | string | Yes |
path | string | Yes |
timestamp | string | Yes |
identifier | string | Yes |
violations | array | No |
// This session has already been terminated.
{ "statusCode": 0, "code": "", "message": "", "details": "", "path": "", "timestamp": "", "identifier": "", "violations": [ { "field": "", "description": "" } ]}