ListCheckCategories
curl --request POST \
--url https://developer.synq.io/api/entities/v2/checks/categories/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ruleIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"technicalCategories": [
"<string>"
],
"governanceCategories": [
"<string>"
],
"attributes": {
"dataPlatformTypes": [],
"entityTypes": [],
"packages": [
"<string>"
],
"kinds": [
"<string>"
]
},
"entityIds": [
"<string>"
],
"pagination": {
"cursor": "<string>",
"pageSize": 1
}
}
'import requests
url = "https://developer.synq.io/api/entities/v2/checks/categories/list"
payload = {
"ruleIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"technicalCategories": ["<string>"],
"governanceCategories": ["<string>"],
"attributes": {
"dataPlatformTypes": [],
"entityTypes": [],
"packages": ["<string>"],
"kinds": ["<string>"]
},
"entityIds": ["<string>"],
"pagination": {
"cursor": "<string>",
"pageSize": 1
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ruleIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
technicalCategories: ['<string>'],
governanceCategories: ['<string>'],
attributes: {
dataPlatformTypes: [],
entityTypes: [],
packages: ['<string>'],
kinds: ['<string>']
},
entityIds: ['<string>'],
pagination: {cursor: '<string>', pageSize: 1}
})
};
fetch('https://developer.synq.io/api/entities/v2/checks/categories/list', 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://developer.synq.io/api/entities/v2/checks/categories/list",
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([
'ruleIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'technicalCategories' => [
'<string>'
],
'governanceCategories' => [
'<string>'
],
'attributes' => [
'dataPlatformTypes' => [
],
'entityTypes' => [
],
'packages' => [
'<string>'
],
'kinds' => [
'<string>'
]
],
'entityIds' => [
'<string>'
],
'pagination' => [
'cursor' => '<string>',
'pageSize' => 1
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://developer.synq.io/api/entities/v2/checks/categories/list"
payload := strings.NewReader("{\n \"ruleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"technicalCategories\": [\n \"<string>\"\n ],\n \"governanceCategories\": [\n \"<string>\"\n ],\n \"attributes\": {\n \"dataPlatformTypes\": [],\n \"entityTypes\": [],\n \"packages\": [\n \"<string>\"\n ],\n \"kinds\": [\n \"<string>\"\n ]\n },\n \"entityIds\": [\n \"<string>\"\n ],\n \"pagination\": {\n \"cursor\": \"<string>\",\n \"pageSize\": 1\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://developer.synq.io/api/entities/v2/checks/categories/list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ruleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"technicalCategories\": [\n \"<string>\"\n ],\n \"governanceCategories\": [\n \"<string>\"\n ],\n \"attributes\": {\n \"dataPlatformTypes\": [],\n \"entityTypes\": [],\n \"packages\": [\n \"<string>\"\n ],\n \"kinds\": [\n \"<string>\"\n ]\n },\n \"entityIds\": [\n \"<string>\"\n ],\n \"pagination\": {\n \"cursor\": \"<string>\",\n \"pageSize\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.synq.io/api/entities/v2/checks/categories/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ruleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"technicalCategories\": [\n \"<string>\"\n ],\n \"governanceCategories\": [\n \"<string>\"\n ],\n \"attributes\": {\n \"dataPlatformTypes\": [],\n \"entityTypes\": [],\n \"packages\": [\n \"<string>\"\n ],\n \"kinds\": [\n \"<string>\"\n ]\n },\n \"entityIds\": [\n \"<string>\"\n ],\n \"pagination\": {\n \"cursor\": \"<string>\",\n \"pageSize\": 1\n }\n}"
response = http.request(request)
puts response.read_body{
"categories": [
{
"entityId": "<string>",
"technical": {
"category": "<string>",
"source": "CATEGORY_SOURCE_UNSPECIFIED",
"override": "<string>",
"ruleId": "<string>",
"ruleTitle": "<string>",
"ruleScope": "RULE_SCOPE_UNSPECIFIED",
"computed": {
"category": "<string>",
"ruleId": "<string>",
"ruleTitle": "<string>"
}
},
"governance": {
"category": "<string>",
"source": "CATEGORY_SOURCE_UNSPECIFIED",
"override": "<string>",
"ruleId": "<string>",
"ruleTitle": "<string>",
"ruleScope": "RULE_SCOPE_UNSPECIFIED",
"computed": {
"category": "<string>",
"ruleId": "<string>",
"ruleTitle": "<string>"
}
},
"check": {
"name": "<string>",
"fullName": [
"<string>"
],
"package": "<string>",
"kind": "<string>",
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"dataPlatformType": "DATA_PLATFORM_TYPE_UNSPECIFIED",
"isPlatformNative": true,
"description": "<string>",
"checkedEntityIds": [
"<string>"
],
"annotations": {}
},
"etag": "<string>",
"updatedBy": {
"name": "<string>",
"email": {
"userEmail": "jsmith@example.com"
},
"via": "VIA_UNSPECIFIED"
},
"updatedAt": "2023-01-15T01:30:15.01Z"
}
],
"pageInfo": {
"totalCount": 123,
"count": 123,
"lastId": "<string>"
}
}synq.entities.checks.v2.ChecksCategoriesService
ListCheckCategories
List the workspace’s checks with their resolved categories. Returns every check by default; the filters combine, so one call answers questions like “which dbt tests still have no governance category” or “which checks did this rule categorise”.
POST
/
api
/
entities
/
v2
/
checks
/
categories
/
list
ListCheckCategories
curl --request POST \
--url https://developer.synq.io/api/entities/v2/checks/categories/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ruleIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"technicalCategories": [
"<string>"
],
"governanceCategories": [
"<string>"
],
"attributes": {
"dataPlatformTypes": [],
"entityTypes": [],
"packages": [
"<string>"
],
"kinds": [
"<string>"
]
},
"entityIds": [
"<string>"
],
"pagination": {
"cursor": "<string>",
"pageSize": 1
}
}
'import requests
url = "https://developer.synq.io/api/entities/v2/checks/categories/list"
payload = {
"ruleIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"],
"technicalCategories": ["<string>"],
"governanceCategories": ["<string>"],
"attributes": {
"dataPlatformTypes": [],
"entityTypes": [],
"packages": ["<string>"],
"kinds": ["<string>"]
},
"entityIds": ["<string>"],
"pagination": {
"cursor": "<string>",
"pageSize": 1
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ruleIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a'],
technicalCategories: ['<string>'],
governanceCategories: ['<string>'],
attributes: {
dataPlatformTypes: [],
entityTypes: [],
packages: ['<string>'],
kinds: ['<string>']
},
entityIds: ['<string>'],
pagination: {cursor: '<string>', pageSize: 1}
})
};
fetch('https://developer.synq.io/api/entities/v2/checks/categories/list', 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://developer.synq.io/api/entities/v2/checks/categories/list",
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([
'ruleIds' => [
'3c90c3cc-0d44-4b50-8888-8dd25736052a'
],
'technicalCategories' => [
'<string>'
],
'governanceCategories' => [
'<string>'
],
'attributes' => [
'dataPlatformTypes' => [
],
'entityTypes' => [
],
'packages' => [
'<string>'
],
'kinds' => [
'<string>'
]
],
'entityIds' => [
'<string>'
],
'pagination' => [
'cursor' => '<string>',
'pageSize' => 1
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://developer.synq.io/api/entities/v2/checks/categories/list"
payload := strings.NewReader("{\n \"ruleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"technicalCategories\": [\n \"<string>\"\n ],\n \"governanceCategories\": [\n \"<string>\"\n ],\n \"attributes\": {\n \"dataPlatformTypes\": [],\n \"entityTypes\": [],\n \"packages\": [\n \"<string>\"\n ],\n \"kinds\": [\n \"<string>\"\n ]\n },\n \"entityIds\": [\n \"<string>\"\n ],\n \"pagination\": {\n \"cursor\": \"<string>\",\n \"pageSize\": 1\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://developer.synq.io/api/entities/v2/checks/categories/list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ruleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"technicalCategories\": [\n \"<string>\"\n ],\n \"governanceCategories\": [\n \"<string>\"\n ],\n \"attributes\": {\n \"dataPlatformTypes\": [],\n \"entityTypes\": [],\n \"packages\": [\n \"<string>\"\n ],\n \"kinds\": [\n \"<string>\"\n ]\n },\n \"entityIds\": [\n \"<string>\"\n ],\n \"pagination\": {\n \"cursor\": \"<string>\",\n \"pageSize\": 1\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://developer.synq.io/api/entities/v2/checks/categories/list")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ruleIds\": [\n \"3c90c3cc-0d44-4b50-8888-8dd25736052a\"\n ],\n \"technicalCategories\": [\n \"<string>\"\n ],\n \"governanceCategories\": [\n \"<string>\"\n ],\n \"attributes\": {\n \"dataPlatformTypes\": [],\n \"entityTypes\": [],\n \"packages\": [\n \"<string>\"\n ],\n \"kinds\": [\n \"<string>\"\n ]\n },\n \"entityIds\": [\n \"<string>\"\n ],\n \"pagination\": {\n \"cursor\": \"<string>\",\n \"pageSize\": 1\n }\n}"
response = http.request(request)
puts response.read_body{
"categories": [
{
"entityId": "<string>",
"technical": {
"category": "<string>",
"source": "CATEGORY_SOURCE_UNSPECIFIED",
"override": "<string>",
"ruleId": "<string>",
"ruleTitle": "<string>",
"ruleScope": "RULE_SCOPE_UNSPECIFIED",
"computed": {
"category": "<string>",
"ruleId": "<string>",
"ruleTitle": "<string>"
}
},
"governance": {
"category": "<string>",
"source": "CATEGORY_SOURCE_UNSPECIFIED",
"override": "<string>",
"ruleId": "<string>",
"ruleTitle": "<string>",
"ruleScope": "RULE_SCOPE_UNSPECIFIED",
"computed": {
"category": "<string>",
"ruleId": "<string>",
"ruleTitle": "<string>"
}
},
"check": {
"name": "<string>",
"fullName": [
"<string>"
],
"package": "<string>",
"kind": "<string>",
"entityType": "ENTITY_TYPE_UNSPECIFIED",
"dataPlatformType": "DATA_PLATFORM_TYPE_UNSPECIFIED",
"isPlatformNative": true,
"description": "<string>",
"checkedEntityIds": [
"<string>"
],
"annotations": {}
},
"etag": "<string>",
"updatedBy": {
"name": "<string>",
"email": {
"userEmail": "jsmith@example.com"
},
"via": "VIA_UNSPECIFIED"
},
"updatedAt": "2023-01-15T01:30:15.01Z"
}
],
"pageInfo": {
"totalCount": 123,
"count": 123,
"lastId": "<string>"
}
}Authorizations
Body
application/json