-
Notifications
You must be signed in to change notification settings - Fork 18
buildin_endpoints_post_extensions_id
Marcel Kloubert edited this page Feb 10, 2017
·
2 revisions
Home >> Build-in endpoints >> [POST] /api/extensions/{id}
Activates an extension.
canActivate property must be set to (true)
for an user or guest in the settings to access the endpoint.
Request:
POST /api/extensions/mkloubert.vs-deploy
Possible response:
Content-type: application/json; charset=utf-8
Content-encoding: gzip
X-Vscode-Restapi: 0.15.0
Date: Fri, 10 Feb 2017 15:59:30 GMT
Connection: keep-alive
Transfer-Encoding: chunked
{
"code": 0,
"data": [
{
"id": "mkloubert.vs-deploy",
"isActive": true,
"localPath": "C:\\Users\\mkloubert\\.vscode\\extensions\\mkloubert.vs-deploy-5.22.2",
"path": "/api/extensions/mkloubert.vs-deploy"
}
]
}
Code | Description |
---|---|
403 |
User has no right to activate extensions. |
404 |
No (matching) extension(s) found. |