ListEntitiesWithMark
curl --request POST \
--url https://developer.synq.io/api/entities/marks/v1alpha/entities-with-mark \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"setByIdentities": [
"<string>"
],
"limitToEntityIds": [
"<string>"
],
"pagination": {
"cursor": "<string>",
"pageSize": 1
}
}
'import requests
url = "https://developer.synq.io/api/entities/marks/v1alpha/entities-with-mark"
payload = {
"setByIdentities": ["<string>"],
"limitToEntityIds": ["<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({
setByIdentities: ['<string>'],
limitToEntityIds: ['<string>'],
pagination: {cursor: '<string>', pageSize: 1}
})
};
fetch('https://developer.synq.io/api/entities/marks/v1alpha/entities-with-mark', 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/marks/v1alpha/entities-with-mark",
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([
'setByIdentities' => [
'<string>'
],
'limitToEntityIds' => [
'<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/marks/v1alpha/entities-with-mark"
payload := strings.NewReader("{\n \"setByIdentities\": [\n \"<string>\"\n ],\n \"limitToEntityIds\": [\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/marks/v1alpha/entities-with-mark")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"setByIdentities\": [\n \"<string>\"\n ],\n \"limitToEntityIds\": [\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/marks/v1alpha/entities-with-mark")
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 \"setByIdentities\": [\n \"<string>\"\n ],\n \"limitToEntityIds\": [\n \"<string>\"\n ],\n \"pagination\": {\n \"cursor\": \"<string>\",\n \"pageSize\": 1\n }\n}"
response = http.request(request)
puts response.read_body{
"entities": [
{
"entityId": "<string>",
"memberEntityIds": [
"<string>"
]
}
],
"pageInfo": {
"totalCount": 123,
"count": 123,
"lastId": "<string>"
}
}synq.entities.marks.v1alpha.EntityMarksService
ListEntitiesWithMark
List the entities that carry a mark, for example to show only the
certified tables. The marks decide as in BatchGetEntityMarks: an entity
carries the mark of any member of its identity group, and a certification
whose definition changed after it does not count. The deprecated entities
include the ones that the deprecation query selects.
POST
/
api
/
entities
/
marks
/
v1alpha
/
entities-with-mark
ListEntitiesWithMark
curl --request POST \
--url https://developer.synq.io/api/entities/marks/v1alpha/entities-with-mark \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"setByIdentities": [
"<string>"
],
"limitToEntityIds": [
"<string>"
],
"pagination": {
"cursor": "<string>",
"pageSize": 1
}
}
'import requests
url = "https://developer.synq.io/api/entities/marks/v1alpha/entities-with-mark"
payload = {
"setByIdentities": ["<string>"],
"limitToEntityIds": ["<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({
setByIdentities: ['<string>'],
limitToEntityIds: ['<string>'],
pagination: {cursor: '<string>', pageSize: 1}
})
};
fetch('https://developer.synq.io/api/entities/marks/v1alpha/entities-with-mark', 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/marks/v1alpha/entities-with-mark",
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([
'setByIdentities' => [
'<string>'
],
'limitToEntityIds' => [
'<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/marks/v1alpha/entities-with-mark"
payload := strings.NewReader("{\n \"setByIdentities\": [\n \"<string>\"\n ],\n \"limitToEntityIds\": [\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/marks/v1alpha/entities-with-mark")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"setByIdentities\": [\n \"<string>\"\n ],\n \"limitToEntityIds\": [\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/marks/v1alpha/entities-with-mark")
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 \"setByIdentities\": [\n \"<string>\"\n ],\n \"limitToEntityIds\": [\n \"<string>\"\n ],\n \"pagination\": {\n \"cursor\": \"<string>\",\n \"pageSize\": 1\n }\n}"
response = http.request(request)
puts response.read_body{
"entities": [
{
"entityId": "<string>",
"memberEntityIds": [
"<string>"
]
}
],
"pageInfo": {
"totalCount": 123,
"count": 123,
"lastId": "<string>"
}
}Authorizations
Body
application/json
Identity strings of the person, to keep only the entities whose mark the person set. Resolve a user to all their identities with synq.users.v1.UsersService GetUserIdentities first. Format: "synq:<user_id>", "email:", "slack:<slack_user_id>". Empty keeps every person. The deprecation query names no person, so with a person set, the entities that only the query deprecates are not listed.
Maximum array length:
100Required string length:
1 - 1024