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

CodeDescriptionSchema
200OK—
400Bad Request—
401401 Unauthorized—
404Not 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

CodeDescriptionSchema
200OKAPIVsCodeSettingsEntitiesVsCodeManifest
400Bad Request—
401401 Unauthorized—
404Not 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

NameTypeDescription
resource_name
Path, required
StringName of the resource such as settings
Allowed values: settings, extensions, globalState, machines, keybindings, snippets, tasks, profiles
Minimum length: 1

Responses

CodeDescriptionSchema
200OKArray of APIVsCodeSettingsEntitiesVsCodeSettingReference
400400 bad request—
401401 Unauthorized—
404Not 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

NameTypeDescription
resource_name
Path, required
StringName of the resource such as settings
Allowed values: settings, extensions, globalState, machines, keybindings, snippets, tasks, profiles
Minimum length: 1

Responses

CodeDescriptionSchema
200OK—
400Bad request—
401401 Unauthorized—
404Not 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

NameTypeDescription
resource_name
Path, required
StringName of the resource such as settings
Allowed values: settings, extensions, globalState, machines, keybindings, snippets, tasks, profiles
Minimum length: 1
id
Path, required
StringID of the resource to retrieve

Responses

CodeDescriptionSchema
200OKAPIVsCodeSettingsEntitiesVsCodeSetting
204No content—
400400 bad request—
401401 Unauthorized—
404Not 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

NameTypeDescription
settings_context_hash
Path, required
StringSettings context hash

Responses

CodeDescriptionSchema
200OK—
400Bad Request—
401401 Unauthorized—
404Not 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

NameTypeDescription
settings_context_hash
Path, required
StringSettings context hash

Responses

CodeDescriptionSchema
200OKAPIVsCodeSettingsEntitiesVsCodeManifest
400Bad Request—
401401 Unauthorized—
404Not 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

NameTypeDescription
settings_context_hash
Path, required
StringSettings context hash
resource_name
Path, required
StringName of the resource such as settings
Allowed values: settings, extensions, globalState, machines, keybindings, snippets, tasks, profiles
Minimum length: 1

Responses

CodeDescriptionSchema
200OKArray of APIVsCodeSettingsEntitiesVsCodeSettingReference
400400 bad request—
401401 Unauthorized—
404Not 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

NameTypeDescription
settings_context_hash
Path, required
StringSettings context hash
resource_name
Path, required
StringName of the resource such as settings
Allowed values: settings, extensions, globalState, machines, keybindings, snippets, tasks, profiles
Minimum length: 1

Responses

CodeDescriptionSchema
200OK—
400Bad request—
401401 Unauthorized—
404Not 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

NameTypeDescription
settings_context_hash
Path, required
StringSettings context hash
resource_name
Path, required
StringName of the resource such as settings
Allowed values: settings, extensions, globalState, machines, keybindings, snippets, tasks, profiles
Minimum length: 1
id
Path, required
StringID of the resource to retrieve

Responses

CodeDescriptionSchema
200OKAPIVsCodeSettingsEntitiesVsCodeSetting
204No content—
400400 bad request—
401401 Unauthorized—
404Not Found—

Schemas

Objects returned by the operations above and objects nested in their request bodies.

APIVsCodeSettingsEntitiesVsCodeManifest

PropertyTypeDescription
latestString—
sessionStringExample: 1

APIVsCodeSettingsEntitiesVsCodeSetting

PropertyTypeDescription
contentString—
machineIdString—
machinesString—
versionString—

APIVsCodeSettingsEntitiesVsCodeSettingReference

PropertyTypeDescription
createdString—
urlString—