diff --git a/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/Csm.json b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/Csm.json index c5cd03b281d5..b9a74fdbc55b 100644 --- a/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/Csm.json +++ b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/Csm.json @@ -517,6 +517,57 @@ "$ref": "./examples/GetResource.json" } } + }, + "patch": { + "tags": [ + "Accounts" + ], + "summary": "Accounts_Update", + "description": "Updates tags for Visual Studio Team Services account resource.", + "operationId": "Accounts_Update", + "parameters": [ + { + "$ref": "#/parameters/resourceGroupNameParameter" + }, + { + "$ref": "#/parameters/subscriptionIdParameter" + }, + { + "$ref": "#/parameters/apiVersionParameter" + }, + { + "in": "body", + "name": "body", + "description": "The request data.", + "required": true, + "schema": { + "$ref": "#/definitions/AccountTagRequest" + } + }, + { + "in": "path", + "name": "resourceName", + "description": "Name of the resource.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "The operation succeeded. The Visual Studio Team Services account resource was updated.", + "schema": { + "$ref": "#/definitions/AccountResource" + } + }, + "404": { + "description": "The Visual Studio Team Services account does not exist." + } + }, + "x-ms-examples": { + "Create an account resource": { + "$ref": "./examples/UpdateTags.json" + } + } } }, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.visualstudio/account/{rootResourceName}/project": { @@ -839,6 +890,19 @@ } } }, + "AccountTagRequest": { + "description": "The body of a Patch request to add tags to a Visual Studio account resource.", + "type": "object", + "properties": { + "tags": { + "description": "The custom tags of the resource.", + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + }, "AccountResourceRequest": { "description": "The body of a PUT request to modify a Visual Studio account resource.", "type": "object", diff --git a/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/UpdateTags.json b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/UpdateTags.json new file mode 100644 index 000000000000..a4a1c9582eab --- /dev/null +++ b/specification/visualstudio/resource-manager/Microsoft.VisualStudio/preview/2014-04-01-preview/examples/UpdateTags.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "body": { + "tags": {"tag1":"value1"} + }, + "subscriptionId": "0de7f055-dbea-498d-8e9e-da287eedca90", + "resourceGroupName": "VS-Example-Group", + "resourceName": "Example", + "api-version": "2014-04-01-preview" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/0de7f055-dbea-498d-8e9e-da287eedca90/resourceGroups/VS-Example-Group/providers/Microsoft.VisualStudio/account/Example", + "name": "VS-Example-Group", + "type": "Microsoft.VisualStudio/account", + "location": "Central US", + "tags": {}, + "properties": { + "AccountURL": "" + } + } + }, + "404": { + } + } + } \ No newline at end of file