Use this API to synchronize Visual Studio Code settings, so that a user’s editor preferences follow them between VS Code and the Web IDE.
Delete all VS Code setting resources for a user
DELETE /api/v4/vscode/settings_sync/v1/collection
Deletes all VS Code setting resources of the current user.
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
400 | Bad Request | — |
401 | 401 Unauthorized | — |
404 | Not Found | — |
Retrieve the settings manifest for Settings Sync
GET /api/v4/vscode/settings_sync/v1/manifest
Retrieves the manifest of the settings stored for VS Code Settings Sync.
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIVs |
400 | Bad Request | — |
401 | 401 Unauthorized | — |
404 | Not Found | — |
List all references to a VS Code setting resource
GET /api/v4/vscode/settings_sync/v1/resource/{resource_name}
Lists all references to the stored versions of a VS Code setting resource.
Parameters
| Name | Type | Description |
|---|---|---|
resource_Path, | String | Name of the resource such as settings Allowed values: settings,extensions,global,machines,keybindings,snippets,tasks,profilesMinimum length: 1 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIVs |
400 | 400 bad request | — |
401 | 401 Unauthorized | — |
404 | Not Found | — |
Create or update a specific setting
POST /api/v4/vscode/settings_sync/v1/resource/{resource_name}
Creates a VS Code setting resource, or updates it if it already exists.
Parameters
| Name | Type | Description |
|---|---|---|
resource_Path, | String | Name of the resource such as settings Allowed values: settings,extensions,global,machines,keybindings,snippets,tasks,profilesMinimum length: 1 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
400 | Bad request | — |
401 | 401 Unauthorized | — |
404 | Not Found | — |
Retrieve a specific setting resource
GET /api/v4/vscode/settings_sync/v1/resource/{resource_name}/{id}
Retrieves a single VS Code setting resource. Returns 204 when the resource does not exist.
Parameters
| Name | Type | Description |
|---|---|---|
resource_Path, | String | Name of the resource such as settings Allowed values: settings,extensions,global,machines,keybindings,snippets,tasks,profilesMinimum length: 1 |
idPath, | String | ID of the resource to retrieve |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIVs |
204 | No content | — |
400 | 400 bad request | — |
401 | 401 Unauthorized | — |
404 | Not Found | — |
Delete all VS Code setting resources for a user
DELETE /api/v4/vscode/settings_sync/{settings_context_hash}/v1/collection
Deletes all VS Code setting resources of the current user.
Parameters
| Name | Type | Description |
|---|---|---|
settings_Path, | String | Settings context hash |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
400 | Bad Request | — |
401 | 401 Unauthorized | — |
404 | Not Found | — |
Retrieve the settings manifest for Settings Sync
GET /api/v4/vscode/settings_sync/{settings_context_hash}/v1/manifest
Retrieves the manifest of the settings stored for VS Code Settings Sync.
Parameters
| Name | Type | Description |
|---|---|---|
settings_Path, | String | Settings context hash |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIVs |
400 | Bad Request | — |
401 | 401 Unauthorized | — |
404 | Not Found | — |
List all references to a VS Code setting resource
GET /api/v4/vscode/settings_sync/{settings_context_hash}/v1/resource/{resource_name}
Lists all references to the stored versions of a VS Code setting resource.
Parameters
| Name | Type | Description |
|---|---|---|
settings_Path, | String | Settings context hash |
resource_Path, | String | Name of the resource such as settings Allowed values: settings,extensions,global,machines,keybindings,snippets,tasks,profilesMinimum length: 1 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | Array of APIVs |
400 | 400 bad request | — |
401 | 401 Unauthorized | — |
404 | Not Found | — |
Create or update a specific setting
POST /api/v4/vscode/settings_sync/{settings_context_hash}/v1/resource/{resource_name}
Creates a VS Code setting resource, or updates it if it already exists.
Parameters
| Name | Type | Description |
|---|---|---|
settings_Path, | String | Settings context hash |
resource_Path, | String | Name of the resource such as settings Allowed values: settings,extensions,global,machines,keybindings,snippets,tasks,profilesMinimum length: 1 |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | — |
400 | Bad request | — |
401 | 401 Unauthorized | — |
404 | Not Found | — |
Retrieve a specific setting resource
GET /api/v4/vscode/settings_sync/{settings_context_hash}/v1/resource/{resource_name}/{id}
Retrieves a single VS Code setting resource. Returns 204 when the resource does not exist.
Parameters
| Name | Type | Description |
|---|---|---|
settings_Path, | String | Settings context hash |
resource_Path, | String | Name of the resource such as settings Allowed values: settings,extensions,global,machines,keybindings,snippets,tasks,profilesMinimum length: 1 |
idPath, | String | ID of the resource to retrieve |
Responses
| Code | Description | Schema |
|---|---|---|
200 | OK | APIVs |
204 | No content | — |
400 | 400 bad request | — |
401 | 401 Unauthorized | — |
404 | Not Found | — |
Schemas
Objects returned by the operations above and objects nested in their request bodies.
APIVsCodeSettingsEntitiesVsCodeManifest
| Property | Type | Description |
|---|---|---|
latest | String | — |
session | String | Example:1 |
APIVsCodeSettingsEntitiesVsCodeSetting
| Property | Type | Description |
|---|---|---|
content | String | — |
machine | String | — |
machines | String | — |
version | String | — |
APIVsCodeSettingsEntitiesVsCodeSettingReference
| Property | Type | Description |
|---|---|---|
created | String | — |
url | String | — |