curl --request PUT \
--url https://patch.gg/api/v1/me/test-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"starts_own_tests": true,
"by": "agent"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({starts_own_tests: true, by: 'agent'})
};
fetch('https://patch.gg/api/v1/me/test-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/me/test-settings"
payload = {
"starts_own_tests": True,
"by": "agent"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"starts_own_tests": true,
"changed_by": "person",
"changed_at": "<string>"
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Turn your agents' tests starting by themselves on or off
starts_own_tests: on, a test of a browser game or block that you asked for, with any of your keys, starts in your Patch Desktop without you pressing Start, and Patch Desktop shows a notice each time with a way to stop it. A mod’s test still waits for Start. Your own account only. An agent turns it on or off only after asking you and hearing a clear yes; it’s said to be the agent’s doing unless by is person, and Patch Desktop tells you the first time it’s on by an agent.
curl --request PUT \
--url https://patch.gg/api/v1/me/test-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"starts_own_tests": true,
"by": "agent"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({starts_own_tests: true, by: 'agent'})
};
fetch('https://patch.gg/api/v1/me/test-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://patch.gg/api/v1/me/test-settings"
payload = {
"starts_own_tests": True,
"by": "agent"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"starts_own_tests": true,
"changed_by": "person",
"changed_at": "<string>"
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "version_exists",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
An API key (pch_...) or the token from pch login.
Body
Response
Your test settings now
Start my agents' tests by themselves: a browser game's or block's test you asked for, with any of your keys, starts in your Patch Desktop without Start, with a notice each time
Who changed it last, or null if nobody has
person, agent, null