Standards
Preview copied-standard activation (legacy)
Requires detection_rule.read. Results are scoped to the authenticated tenant. This reference is generated from source; consult the authenticated live schema for deployment-specific availability. Legacy full-policy preview for a non-empty disabled curated-copy draft. Returns the complete policy, current scope and assigned-client count, and whether workspace-wide acknowledgement is required. This compatibility route is bounded to 50 controls, 50 manual checks, 200 rule-scope rows and 240 KiB. Use the summary and pages routes for larger drafts. Current per-client overrides and client population are not frozen; this read does not enable or evaluate.
Preview copied-standard activation (legacy)
curl --request GET \
--url https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview', 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://api.alignr.io/api/v1/standards/{standard_id}/activation-preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"standardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"enabled": false,
"controlCount": 123,
"manualCheckCount": 123,
"workspaceWide": true,
"assignedClientCount": 123,
"activationRevision": "<string>",
"revisionExpiresAt": "2023-11-07T05:31:56Z",
"policy": {
"standard": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"enabled": true,
"scopeMode": "workspace",
"assignedClientCount": 123,
"assignmentFingerprint": "<string>",
"isSystem": true,
"version": 123,
"activationGeneration": 123
},
"controls": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"scope": "<string>",
"scopeIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"category": "<string>",
"severity": "<string>",
"autonomy": "<string>",
"enabled": true,
"definition": {},
"parameters": {}
}
],
"manualChecks": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"instructions": "<string>",
"category": "<string>",
"reviewIntervalDays": 123,
"enabled": true,
"version": 123,
"sourceMetadata": {}
}
]
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Response
Successful Response
⌘I
Preview copied-standard activation (legacy)
curl --request GET \
--url https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview', 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://api.alignr.io/api/v1/standards/{standard_id}/activation-preview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.alignr.io/api/v1/standards/{standard_id}/activation-preview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"standardId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"enabled": false,
"controlCount": 123,
"manualCheckCount": 123,
"workspaceWide": true,
"assignedClientCount": 123,
"activationRevision": "<string>",
"revisionExpiresAt": "2023-11-07T05:31:56Z",
"policy": {
"standard": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"enabled": true,
"scopeMode": "workspace",
"assignedClientCount": 123,
"assignmentFingerprint": "<string>",
"isSystem": true,
"version": 123,
"activationGeneration": 123
},
"controls": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"slug": "<string>",
"description": "<string>",
"scope": "<string>",
"scopeIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"category": "<string>",
"severity": "<string>",
"autonomy": "<string>",
"enabled": true,
"definition": {},
"parameters": {}
}
],
"manualChecks": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"instructions": "<string>",
"category": "<string>",
"reviewIntervalDays": 123,
"enabled": true,
"version": 123,
"sourceMetadata": {}
}
]
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}