@@ -0,0 +1,1793 @@
+/*%0A * Copyright 2017 Netflix, Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22)%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *   http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.netflix.spinnaker.gate.controllers;%0A%0Aimport com.netflix.spinnaker.gate.services.TaskService;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.http.HttpStatus;%0Aimport org.springframework.web.bind.annotation.*;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0A%0A@RestController%0A@RequestMapping(value = %22/batch/tags%22)%0Apublic class BatchEntityTagsController %7B%0A%0A  private TaskService taskService;%0A%0A  @Autowired%0A  public BatchEntityTagsController(TaskService taskService) %7B%0A    this.taskService = taskService;%0A  %7D%0A%0A  @RequestMapping(value = %22/batch%22, method = RequestMethod.POST)%0A  @ResponseStatus(value = HttpStatus.ACCEPTED)%0A  public Map batchUpdate(@RequestBody List%3CMap%3E entityTags) %7B%0A    Map%3CString, Object%3E job = new HashMap%3C%3E();%0A    job.put(%22type%22, %22bulkUpsertEntityTags%22);%0A    job.put(%22entityTags%22, entityTags);%0A%0A    List%3CMap%3CString, Object%3E%3E jobs = new ArrayList%3C%3E();%0A    jobs.add(job);%0A%0A    Map%3CString, Object%3E operation = new HashMap%3C%3E();%0A    operation.put(%22description%22, %22Bulk upsert Tags%22);%0A    operation.put(%22job%22, jobs);%0A    return taskService.createAppTask(%22ad-hoc%22, operation);%0A  %7D%0A%7D%0A

add batchUpdate endpoint for tagging