Codevisor Docs
Api reference

Stop and remove a desktop that an older Codevisor set up as root, when the server's account can use sudo without a password

POST/v1/desktop/replace-old

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/desktop/replace-old"
{  "state": "none",  "account": "string",  "system": "string",  "display": 0,  "problem": "string",  "unmanaged": true,  "keepsRunning": true,  "unitOwnedByAnother": true,  "busy": "string",  "failure": "string",  "missing": [    "string"  ],  "packageManager": "string",  "sudo": "passwordless",  "oldDesktop": {    "units": [      "string"    ]  },  "startsAtBoot": true,  "startAtBootHint": "string",  "logHint": "string",  "screen": {    "state": "none",    "session": "string",    "display": "string",    "problem": "string",    "busy": "string",    "failure": "string",    "missing": [      "string"    ],    "sudo": "passwordless",    "others": [      "string"    ]  }}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}
{  "error": "string"}