MCPcopy Create free account
hub / github.com/LizardByte/Sunshine / updateClient

Function updateClient

src/confighttp.cpp:884–923  ·  view source on GitHub ↗

* @brief Enable or disable a client. * @param response The HTTP response object. * @param request The HTTP request object. * The body for the POST request should be JSON serialized in the following format: * @code{.json} * { * "uuid": " ", * "enabled": true * } * @endcode * * @api_examples{/api/clients/update| POST| {"uuid":" ","enabled":true}} */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 15

check_content_typeFunction · 0.85
authenticateFunction · 0.85
get_client_idFunction · 0.85
validate_csrf_tokenFunction · 0.85
set_client_enabledFunction · 0.85
get_cert_by_uuidFunction · 0.85
session_countFunction · 0.85
send_responseFunction · 0.85
bad_requestFunction · 0.85
emptyMethod · 0.80
terminateMethod · 0.80

Tested by

no test coverage detected