Search audits
curl --request POST \
--url https://web.edcontrols.com/api/v2/data/audits/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"projects": [
"<string>"
],
"includeFields": [
"name",
"status",
"dates.dueDate",
"participants.responsible"
],
"tag": "<string>",
"noTags": true,
"status": "<string>",
"template": "<string>",
"groupid": "<string>",
"includeActive": true,
"includeArchived": true,
"archived": true,
"filterRole": "<string>",
"roleMailAddress": "<string>",
"rangeFilter": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"dateRangeFilter": "overdue",
"searchByTitle": "<string>",
"searchByAuditor": "<string>",
"searchByDrawings": "<string>",
"searchById": "<string>",
"ticketID": "<string>",
"isTicketExists": true,
"isRecurrent": true,
"sortby": "<string>",
"aggregate": "<string>"
}
'import requests
url = "https://web.edcontrols.com/api/v2/data/audits/search"
payload = {
"projects": ["<string>"],
"includeFields": ["name", "status", "dates.dueDate", "participants.responsible"],
"tag": "<string>",
"noTags": True,
"status": "<string>",
"template": "<string>",
"groupid": "<string>",
"includeActive": True,
"includeArchived": True,
"archived": True,
"filterRole": "<string>",
"roleMailAddress": "<string>",
"rangeFilter": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"dateRangeFilter": "overdue",
"searchByTitle": "<string>",
"searchByAuditor": "<string>",
"searchByDrawings": "<string>",
"searchById": "<string>",
"ticketID": "<string>",
"isTicketExists": True,
"isRecurrent": True,
"sortby": "<string>",
"aggregate": "<string>"
}
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({
projects: ['<string>'],
includeFields: ['name', 'status', 'dates.dueDate', 'participants.responsible'],
tag: '<string>',
noTags: true,
status: '<string>',
template: '<string>',
groupid: '<string>',
includeActive: true,
includeArchived: true,
archived: true,
filterRole: '<string>',
roleMailAddress: '<string>',
rangeFilter: '<string>',
fromDate: '2023-11-07T05:31:56Z',
untilDate: '2023-11-07T05:31:56Z',
dateRangeFilter: 'overdue',
searchByTitle: '<string>',
searchByAuditor: '<string>',
searchByDrawings: '<string>',
searchById: '<string>',
ticketID: '<string>',
isTicketExists: true,
isRecurrent: true,
sortby: '<string>',
aggregate: '<string>'
})
};
fetch('https://web.edcontrols.com/api/v2/data/audits/search', 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://web.edcontrols.com/api/v2/data/audits/search",
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([
'projects' => [
'<string>'
],
'includeFields' => [
'name',
'status',
'dates.dueDate',
'participants.responsible'
],
'tag' => '<string>',
'noTags' => true,
'status' => '<string>',
'template' => '<string>',
'groupid' => '<string>',
'includeActive' => true,
'includeArchived' => true,
'archived' => true,
'filterRole' => '<string>',
'roleMailAddress' => '<string>',
'rangeFilter' => '<string>',
'fromDate' => '2023-11-07T05:31:56Z',
'untilDate' => '2023-11-07T05:31:56Z',
'dateRangeFilter' => 'overdue',
'searchByTitle' => '<string>',
'searchByAuditor' => '<string>',
'searchByDrawings' => '<string>',
'searchById' => '<string>',
'ticketID' => '<string>',
'isTicketExists' => true,
'isRecurrent' => true,
'sortby' => '<string>',
'aggregate' => '<string>'
]),
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://web.edcontrols.com/api/v2/data/audits/search"
payload := strings.NewReader("{\n \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"name\",\n \"status\",\n \"dates.dueDate\",\n \"participants.responsible\"\n ],\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"status\": \"<string>\",\n \"template\": \"<string>\",\n \"groupid\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByAuditor\": \"<string>\",\n \"searchByDrawings\": \"<string>\",\n \"searchById\": \"<string>\",\n \"ticketID\": \"<string>\",\n \"isTicketExists\": true,\n \"isRecurrent\": true,\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\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://web.edcontrols.com/api/v2/data/audits/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"name\",\n \"status\",\n \"dates.dueDate\",\n \"participants.responsible\"\n ],\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"status\": \"<string>\",\n \"template\": \"<string>\",\n \"groupid\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByAuditor\": \"<string>\",\n \"searchByDrawings\": \"<string>\",\n \"searchById\": \"<string>\",\n \"ticketID\": \"<string>\",\n \"isTicketExists\": true,\n \"isRecurrent\": true,\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web.edcontrols.com/api/v2/data/audits/search")
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 \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"name\",\n \"status\",\n \"dates.dueDate\",\n \"participants.responsible\"\n ],\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"status\": \"<string>\",\n \"template\": \"<string>\",\n \"groupid\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByAuditor\": \"<string>\",\n \"searchByDrawings\": \"<string>\",\n \"searchById\": \"<string>\",\n \"ticketID\": \"<string>\",\n \"isTicketExists\": true,\n \"isRecurrent\": true,\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"size": 123,
"page": 123,
"hits": 123,
"results": [
{}
],
"aggregations": {}
}{
"message": "User not authorized for this audit",
"code": "FORBIDDEN",
"status": "403"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}Audits
Search audits
Query endpoint (despite the POST method): the filters of GET /audits
as a JSON body, across one or more projects, plus a tag filter.
Name the projects in projects, or pass one as the database query
parameter. page and size are query parameters. Results carry only
the id unless you name fields in includeFields.
POST
/
api
/
v2
/
data
/
audits
/
search
Search audits
curl --request POST \
--url https://web.edcontrols.com/api/v2/data/audits/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"projects": [
"<string>"
],
"includeFields": [
"name",
"status",
"dates.dueDate",
"participants.responsible"
],
"tag": "<string>",
"noTags": true,
"status": "<string>",
"template": "<string>",
"groupid": "<string>",
"includeActive": true,
"includeArchived": true,
"archived": true,
"filterRole": "<string>",
"roleMailAddress": "<string>",
"rangeFilter": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"dateRangeFilter": "overdue",
"searchByTitle": "<string>",
"searchByAuditor": "<string>",
"searchByDrawings": "<string>",
"searchById": "<string>",
"ticketID": "<string>",
"isTicketExists": true,
"isRecurrent": true,
"sortby": "<string>",
"aggregate": "<string>"
}
'import requests
url = "https://web.edcontrols.com/api/v2/data/audits/search"
payload = {
"projects": ["<string>"],
"includeFields": ["name", "status", "dates.dueDate", "participants.responsible"],
"tag": "<string>",
"noTags": True,
"status": "<string>",
"template": "<string>",
"groupid": "<string>",
"includeActive": True,
"includeArchived": True,
"archived": True,
"filterRole": "<string>",
"roleMailAddress": "<string>",
"rangeFilter": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"dateRangeFilter": "overdue",
"searchByTitle": "<string>",
"searchByAuditor": "<string>",
"searchByDrawings": "<string>",
"searchById": "<string>",
"ticketID": "<string>",
"isTicketExists": True,
"isRecurrent": True,
"sortby": "<string>",
"aggregate": "<string>"
}
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({
projects: ['<string>'],
includeFields: ['name', 'status', 'dates.dueDate', 'participants.responsible'],
tag: '<string>',
noTags: true,
status: '<string>',
template: '<string>',
groupid: '<string>',
includeActive: true,
includeArchived: true,
archived: true,
filterRole: '<string>',
roleMailAddress: '<string>',
rangeFilter: '<string>',
fromDate: '2023-11-07T05:31:56Z',
untilDate: '2023-11-07T05:31:56Z',
dateRangeFilter: 'overdue',
searchByTitle: '<string>',
searchByAuditor: '<string>',
searchByDrawings: '<string>',
searchById: '<string>',
ticketID: '<string>',
isTicketExists: true,
isRecurrent: true,
sortby: '<string>',
aggregate: '<string>'
})
};
fetch('https://web.edcontrols.com/api/v2/data/audits/search', 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://web.edcontrols.com/api/v2/data/audits/search",
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([
'projects' => [
'<string>'
],
'includeFields' => [
'name',
'status',
'dates.dueDate',
'participants.responsible'
],
'tag' => '<string>',
'noTags' => true,
'status' => '<string>',
'template' => '<string>',
'groupid' => '<string>',
'includeActive' => true,
'includeArchived' => true,
'archived' => true,
'filterRole' => '<string>',
'roleMailAddress' => '<string>',
'rangeFilter' => '<string>',
'fromDate' => '2023-11-07T05:31:56Z',
'untilDate' => '2023-11-07T05:31:56Z',
'dateRangeFilter' => 'overdue',
'searchByTitle' => '<string>',
'searchByAuditor' => '<string>',
'searchByDrawings' => '<string>',
'searchById' => '<string>',
'ticketID' => '<string>',
'isTicketExists' => true,
'isRecurrent' => true,
'sortby' => '<string>',
'aggregate' => '<string>'
]),
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://web.edcontrols.com/api/v2/data/audits/search"
payload := strings.NewReader("{\n \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"name\",\n \"status\",\n \"dates.dueDate\",\n \"participants.responsible\"\n ],\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"status\": \"<string>\",\n \"template\": \"<string>\",\n \"groupid\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByAuditor\": \"<string>\",\n \"searchByDrawings\": \"<string>\",\n \"searchById\": \"<string>\",\n \"ticketID\": \"<string>\",\n \"isTicketExists\": true,\n \"isRecurrent\": true,\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\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://web.edcontrols.com/api/v2/data/audits/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"name\",\n \"status\",\n \"dates.dueDate\",\n \"participants.responsible\"\n ],\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"status\": \"<string>\",\n \"template\": \"<string>\",\n \"groupid\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByAuditor\": \"<string>\",\n \"searchByDrawings\": \"<string>\",\n \"searchById\": \"<string>\",\n \"ticketID\": \"<string>\",\n \"isTicketExists\": true,\n \"isRecurrent\": true,\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web.edcontrols.com/api/v2/data/audits/search")
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 \"projects\": [\n \"<string>\"\n ],\n \"includeFields\": [\n \"name\",\n \"status\",\n \"dates.dueDate\",\n \"participants.responsible\"\n ],\n \"tag\": \"<string>\",\n \"noTags\": true,\n \"status\": \"<string>\",\n \"template\": \"<string>\",\n \"groupid\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"rangeFilter\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"dateRangeFilter\": \"overdue\",\n \"searchByTitle\": \"<string>\",\n \"searchByAuditor\": \"<string>\",\n \"searchByDrawings\": \"<string>\",\n \"searchById\": \"<string>\",\n \"ticketID\": \"<string>\",\n \"isTicketExists\": true,\n \"isRecurrent\": true,\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"size": 123,
"page": 123,
"hits": 123,
"results": [
{}
],
"aggregations": {}
}{
"message": "User not authorized for this audit",
"code": "FORBIDDEN",
"status": "403"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}{
"type": "about:blank",
"title": "Unprocessable Entity",
"status": 422,
"detail": "content.title is required"
}Authorizations
Query Parameters
Body
application/json
Each filter means the same as the GET /audits query parameter of the same name.
Response
Search envelope.
