Bulk reassign bundle stages
curl --request POST \
--url https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign \
--header 'Content-Type: application/json' \
--data '
{
"assignee": {
"id": "<string>",
"name": "<string>"
},
"items": [
{
"bundleId": "<string>",
"stageId": "<string>"
}
]
}
'import requests
url = "https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign"
payload = {
"assignee": {
"id": "<string>",
"name": "<string>"
},
"items": [
{
"bundleId": "<string>",
"stageId": "<string>"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
assignee: {id: '<string>', name: '<string>'},
items: [{bundleId: '<string>', stageId: '<string>'}]
})
};
fetch('https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'assignee' => [
'id' => '<string>',
'name' => '<string>'
],
'items' => [
[
'bundleId' => '<string>',
'stageId' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign"
payload := strings.NewReader("{\n \"assignee\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"items\": [\n {\n \"bundleId\": \"<string>\",\n \"stageId\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign")
.header("Content-Type", "application/json")
.body("{\n \"assignee\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"items\": [\n {\n \"bundleId\": \"<string>\",\n \"stageId\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"assignee\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"items\": [\n {\n \"bundleId\": \"<string>\",\n \"stageId\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "<string>",
"details": {
"field": "<string>",
"value": "<string>"
},
"message": "<string>",
"resource": {
"ids": {
"appID": "<string>",
"bundleID": "<string>",
"policyID": "<string>",
"stageID": "<string>"
}
},
"status": 123
},
"results": [
{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": {
"field": "<string>",
"value": "<string>"
},
"message": "<string>",
"resource": {
"ids": {
"appID": "<string>",
"bundleID": "<string>",
"policyID": "<string>",
"stageID": "<string>"
}
},
"status": 123
},
"resource": {
"ids": {
"appID": "<string>",
"bundleID": "<string>",
"policyID": "<string>",
"stageID": "<string>"
}
},
"status": 123
}
]
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}bundle-stages
Bulk reassign bundle stages
Reassign one or more bundle stages to a single assignee. Each item targets a specific stage () or just a bundle (), in which case its current stage is used. Returns a per-item result list. Requires manage permission on every project the bundles belong to.
POST
/
api
/
governance
/
v1
/
bundle-stages
/
bulk-reassign
Bulk reassign bundle stages
curl --request POST \
--url https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign \
--header 'Content-Type: application/json' \
--data '
{
"assignee": {
"id": "<string>",
"name": "<string>"
},
"items": [
{
"bundleId": "<string>",
"stageId": "<string>"
}
]
}
'import requests
url = "https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign"
payload = {
"assignee": {
"id": "<string>",
"name": "<string>"
},
"items": [
{
"bundleId": "<string>",
"stageId": "<string>"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
assignee: {id: '<string>', name: '<string>'},
items: [{bundleId: '<string>', stageId: '<string>'}]
})
};
fetch('https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'assignee' => [
'id' => '<string>',
'name' => '<string>'
],
'items' => [
[
'bundleId' => '<string>',
'stageId' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign"
payload := strings.NewReader("{\n \"assignee\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"items\": [\n {\n \"bundleId\": \"<string>\",\n \"stageId\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign")
.header("Content-Type", "application/json")
.body("{\n \"assignee\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"items\": [\n {\n \"bundleId\": \"<string>\",\n \"stageId\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mycluster.domino.tech/api/governance/v1/bundle-stages/bulk-reassign")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"assignee\": {\n \"id\": \"<string>\",\n \"name\": \"<string>\"\n },\n \"items\": [\n {\n \"bundleId\": \"<string>\",\n \"stageId\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "<string>",
"details": {
"field": "<string>",
"value": "<string>"
},
"message": "<string>",
"resource": {
"ids": {
"appID": "<string>",
"bundleID": "<string>",
"policyID": "<string>",
"stageID": "<string>"
}
},
"status": 123
},
"results": [
{
"data": "<unknown>",
"error": {
"code": "<string>",
"details": {
"field": "<string>",
"value": "<string>"
},
"message": "<string>",
"resource": {
"ids": {
"appID": "<string>",
"bundleID": "<string>",
"policyID": "<string>",
"stageID": "<string>"
}
},
"status": 123
},
"resource": {
"ids": {
"appID": "<string>",
"bundleID": "<string>",
"policyID": "<string>",
"stageID": "<string>"
}
},
"status": 123
}
]
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}{
"code": "BUNDLE_REQUIRES_POLICY",
"message": "<string>"
}Related topics
Bulk update bundlesList bundle stages (Stage View)Bulk add attachments to bundlesUpdate bundle stage by IDWas this page helpful?
⌘I