-
Notifications
You must be signed in to change notification settings - Fork 18
buildin_endpoints_delete_editors_id
Marcel Kloubert edited this page Feb 10, 2017
·
4 revisions
Home >> Build-in endpoints >> [DELETE] /api/editors(/{id})
Closes / hides an editor (tab).
canClose property must be set to (true)
for an user or guest in the settings to access the endpoint.
Request:
DELETE /api/editors/1
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
}
Request:
DELETE /api/editors
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
}
Code | Description |
---|---|
403 |
User has no right to close tabs. |
404 |
No (matching) tab found. |