Set agent mode
POST
/player/agent-mode
const url = 'https://api.harperharbor.com/open/v1/player/agent-mode';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"roleId":"example","multiPassEnabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.harperharbor.com/open/v1/player/agent-mode \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "roleId": "example", "multiPassEnabled": true }'Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”Media typeapplication/json
object
roleId
string
multiPassEnabled
boolean
Examplegenerated
{ "roleId": "example", "multiPassEnabled": true}Responses
Section titled “Responses”Saved.