Skip to content

buildin_endpoints_delete_appstate_name

Marcel Kloubert edited this page Feb 19, 2017 · 2 revisions

Home >> Build-in endpoints >> [DELETE] /api/appstate/{name}

[DELETE] /api/appstate/{name}

Deletes a value.

canDelete property must be set to (true) for an user or guest in the settings to access the endpoint.

Example

Request:

DELETE /api/appstate/myVar

Possible response:

Content-type: application/json; charset=utf-8
Content-encoding: gzip
X-Vscode-Restapi: 1.0.0
Date: Fri, 10 Feb 2017 15:06:36 GMT
Connection: keep-alive
Transfer-Encoding: chunked

{
    "code": 0,
    "data": {
        "old": "The old value"
    }
}

Other responses

Code Description
403 User has no right to delete values.
Clone this wiki locally