Set the default scorecard
curl --request POST \
--url https://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedVersion": 2,
"changeSummary": "<string>"
}
'import requests
url = "https://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default"
payload = {
"expectedVersion": 2,
"changeSummary": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({expectedVersion: 2, changeSummary: '<string>'})
};
fetch('https://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default', 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://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default",
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([
'expectedVersion' => 2,
'changeSummary' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default"
payload := strings.NewReader("{\n \"expectedVersion\": 2,\n \"changeSummary\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expectedVersion\": 2,\n \"changeSummary\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expectedVersion\": 2,\n \"changeSummary\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {}
}{
"status": 400,
"message": "Bad request",
"code": "VALIDATION_ERROR"
}<string><string><string>CRR Scorecards
Set the default scorecard
Makes the scorecard the workspace default. Requires an admin application key (tenant-scoped, created by an owner or admin) or a dashboard user token. Writes by a user token require an owner or admin.
POST
/
v2
/
organizations
/
{orgId}
/
workspaces
/
{workspaceId}
/
crr-scorecards
/
{scorecardId}
/
default
Set the default scorecard
curl --request POST \
--url https://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"expectedVersion": 2,
"changeSummary": "<string>"
}
'import requests
url = "https://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default"
payload = {
"expectedVersion": 2,
"changeSummary": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({expectedVersion: 2, changeSummary: '<string>'})
};
fetch('https://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default', 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://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default",
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([
'expectedVersion' => 2,
'changeSummary' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default"
payload := strings.NewReader("{\n \"expectedVersion\": 2,\n \"changeSummary\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"expectedVersion\": 2,\n \"changeSummary\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://admin-api.gominerva.com/v2/organizations/{orgId}/workspaces/{workspaceId}/crr-scorecards/{scorecardId}/default")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"expectedVersion\": 2,\n \"changeSummary\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {}
}{
"status": 400,
"message": "Bad request",
"code": "VALIDATION_ERROR"
}<string><string><string>Authorizations
AdminApiKeyAuthUserTokenAuth
An admin application key: Authorization: Api-Key <token> (or legacy x-api-key). Only tenant owners and admins can create one. Standard keys are refused with 403 on workspace management and tenant configuration routes.
Path Parameters
The organization (tenant) id. Must equal the tenant of the admin key.
A workspace id in this organization. A workspace of another organization is 404.
The scorecard id.
Body
application/json
Response
Success
Envelope { data: { id, ... } } carrying the requested tenant-configuration record(s).