curl --request PUT \
--url https://admin-api.gominerva.com/v2/organizations/{orgId}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"versionId": "<string>"
}
'import requests
url = "https://admin-api.gominerva.com/v2/organizations/{orgId}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation"
payload = {
"enabled": True,
"versionId": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, versionId: '<string>'})
};
fetch('https://admin-api.gominerva.com/v2/organizations/{orgId}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation', 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}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'versionId' => '<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}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation"
payload := strings.NewReader("{\n \"enabled\": true,\n \"versionId\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://admin-api.gominerva.com/v2/organizations/{orgId}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"versionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://admin-api.gominerva.com/v2/organizations/{orgId}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"versionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {}
}{
"status": 400,
"message": "Bad request",
"code": "VALIDATION_ERROR"
}<string><string><string>Activate or deactivate a list in a workspace
Switches a custom list on or off in a workspace. 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.
curl --request PUT \
--url https://admin-api.gominerva.com/v2/organizations/{orgId}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"enabled": true,
"versionId": "<string>"
}
'import requests
url = "https://admin-api.gominerva.com/v2/organizations/{orgId}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation"
payload = {
"enabled": True,
"versionId": "<string>"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({enabled: true, versionId: '<string>'})
};
fetch('https://admin-api.gominerva.com/v2/organizations/{orgId}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation', 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}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'enabled' => true,
'versionId' => '<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}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation"
payload := strings.NewReader("{\n \"enabled\": true,\n \"versionId\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://admin-api.gominerva.com/v2/organizations/{orgId}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"enabled\": true,\n \"versionId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://admin-api.gominerva.com/v2/organizations/{orgId}/custom-lists/workspaces/{workspaceId}/lists/{listId}/activation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"enabled\": true,\n \"versionId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {}
}{
"status": 400,
"message": "Bad request",
"code": "VALIDATION_ERROR"
}<string><string><string>Authorizations
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 custom list id.
Body
The snake_case spellings feed_category and version_id are also accepted.
Anything other than false enables the list.
Required when enabling. The lowercase spellings listed are canonical; the value is matched case-insensitively, so Sanctions is also accepted. The feed must be allowed for the workspace.
internal, sanctions, pep, news, legal, criminal Required when enabling. Must be a published version of the list.
Response
Success
Envelope { data: { id, ... } } carrying the requested tenant-configuration record(s).