Edits an account (a new key is checked)
PATCH
/accounts/{id}Requires: Cookie fret_session / Bearer
Path parameters
idintegerrequired
Request body
application/jsonobjectrequired
labelstringenabledbooleanloginstringNew user name (sent with apiKey)
apiKeystring
Responses
200AccountAccount
idintegerkindstringpluginstringlabelstringenabledbooleanstatusstringpremiumbooleanusernamestringdetailstringerrorstringexpiresAtstring (date-time) | nullcheckedAtstring (date-time) | nullkeyHintstringLast 4 characters of the key (not for passwords)
loginstringUser name, for services that take one
Request
curl -X PATCH "http://localhost:8080/api/v1/accounts/0" \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{ "label": "string", "enabled": true, "login": "string"}'const response = await fetch('http://localhost:8080/api/v1/accounts/0', { method: 'PATCH', headers: { Authorization: 'Bearer <TOKEN>', 'Content-Type': 'application/json', }, body: JSON.stringify({ "label": "string", "enabled": true, "login": "string" }),});const data = await response.json();import requests
response = requests.patch( "http://localhost:8080/api/v1/accounts/0", headers={ "Authorization": "Bearer <TOKEN>", }, json={ "label": "string", "enabled": True, "login": "string", },)response.raise_for_status()print(response.json())Response
200
{ "id": 0, "kind": "hoster", "plugin": "string", "label": "string", "enabled": true, "status": "unknown", "premium": true, "username": "string", "detail": "string", "error": "string", "expiresAt": "2026-01-01T12:00:00Z", "checkedAt": "2026-01-01T12:00:00Z", "keyHint": "string", "login": "string"}