Search files
curl --request POST \
--url https://web.edcontrols.com/api/v2/data/file/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"groupid": "<string>",
"searchByName": "<string>",
"searchById": "<string>",
"tag": "<string>",
"uploadedBy": "<string>",
"includeActive": true,
"includeArchived": true,
"archived": true,
"filterRole": "<string>",
"roleMailAddress": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"sortby": "<string>",
"aggregate": "<string>",
"includeFields": [
"<string>"
]
}
'import requests
url = "https://web.edcontrols.com/api/v2/data/file/search"
payload = {
"groupid": "<string>",
"searchByName": "<string>",
"searchById": "<string>",
"tag": "<string>",
"uploadedBy": "<string>",
"includeActive": True,
"includeArchived": True,
"archived": True,
"filterRole": "<string>",
"roleMailAddress": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"sortby": "<string>",
"aggregate": "<string>",
"includeFields": ["<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({
groupid: '<string>',
searchByName: '<string>',
searchById: '<string>',
tag: '<string>',
uploadedBy: '<string>',
includeActive: true,
includeArchived: true,
archived: true,
filterRole: '<string>',
roleMailAddress: '<string>',
fromDate: '2023-11-07T05:31:56Z',
untilDate: '2023-11-07T05:31:56Z',
sortby: '<string>',
aggregate: '<string>',
includeFields: ['<string>']
})
};
fetch('https://web.edcontrols.com/api/v2/data/file/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/file/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([
'groupid' => '<string>',
'searchByName' => '<string>',
'searchById' => '<string>',
'tag' => '<string>',
'uploadedBy' => '<string>',
'includeActive' => true,
'includeArchived' => true,
'archived' => true,
'filterRole' => '<string>',
'roleMailAddress' => '<string>',
'fromDate' => '2023-11-07T05:31:56Z',
'untilDate' => '2023-11-07T05:31:56Z',
'sortby' => '<string>',
'aggregate' => '<string>',
'includeFields' => [
'<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/file/search"
payload := strings.NewReader("{\n \"groupid\": \"<string>\",\n \"searchByName\": \"<string>\",\n \"searchById\": \"<string>\",\n \"tag\": \"<string>\",\n \"uploadedBy\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\",\n \"includeFields\": [\n \"<string>\"\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://web.edcontrols.com/api/v2/data/file/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"groupid\": \"<string>\",\n \"searchByName\": \"<string>\",\n \"searchById\": \"<string>\",\n \"tag\": \"<string>\",\n \"uploadedBy\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\",\n \"includeFields\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web.edcontrols.com/api/v2/data/file/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 \"groupid\": \"<string>\",\n \"searchByName\": \"<string>\",\n \"searchById\": \"<string>\",\n \"tag\": \"<string>\",\n \"uploadedBy\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\",\n \"includeFields\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"size": 123,
"page": 123,
"hits": 123,
"results": [
{}
],
"aggregations": {}
}{
"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"
}Files
Search files
Query endpoint: the filters of GET /file/{database} as a JSON body.
database is a required query parameter, not a body field; page
and size are query parameters too.
POST
/
api
/
v2
/
data
/
file
/
search
Search files
curl --request POST \
--url https://web.edcontrols.com/api/v2/data/file/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"groupid": "<string>",
"searchByName": "<string>",
"searchById": "<string>",
"tag": "<string>",
"uploadedBy": "<string>",
"includeActive": true,
"includeArchived": true,
"archived": true,
"filterRole": "<string>",
"roleMailAddress": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"sortby": "<string>",
"aggregate": "<string>",
"includeFields": [
"<string>"
]
}
'import requests
url = "https://web.edcontrols.com/api/v2/data/file/search"
payload = {
"groupid": "<string>",
"searchByName": "<string>",
"searchById": "<string>",
"tag": "<string>",
"uploadedBy": "<string>",
"includeActive": True,
"includeArchived": True,
"archived": True,
"filterRole": "<string>",
"roleMailAddress": "<string>",
"fromDate": "2023-11-07T05:31:56Z",
"untilDate": "2023-11-07T05:31:56Z",
"sortby": "<string>",
"aggregate": "<string>",
"includeFields": ["<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({
groupid: '<string>',
searchByName: '<string>',
searchById: '<string>',
tag: '<string>',
uploadedBy: '<string>',
includeActive: true,
includeArchived: true,
archived: true,
filterRole: '<string>',
roleMailAddress: '<string>',
fromDate: '2023-11-07T05:31:56Z',
untilDate: '2023-11-07T05:31:56Z',
sortby: '<string>',
aggregate: '<string>',
includeFields: ['<string>']
})
};
fetch('https://web.edcontrols.com/api/v2/data/file/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/file/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([
'groupid' => '<string>',
'searchByName' => '<string>',
'searchById' => '<string>',
'tag' => '<string>',
'uploadedBy' => '<string>',
'includeActive' => true,
'includeArchived' => true,
'archived' => true,
'filterRole' => '<string>',
'roleMailAddress' => '<string>',
'fromDate' => '2023-11-07T05:31:56Z',
'untilDate' => '2023-11-07T05:31:56Z',
'sortby' => '<string>',
'aggregate' => '<string>',
'includeFields' => [
'<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/file/search"
payload := strings.NewReader("{\n \"groupid\": \"<string>\",\n \"searchByName\": \"<string>\",\n \"searchById\": \"<string>\",\n \"tag\": \"<string>\",\n \"uploadedBy\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\",\n \"includeFields\": [\n \"<string>\"\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://web.edcontrols.com/api/v2/data/file/search")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"groupid\": \"<string>\",\n \"searchByName\": \"<string>\",\n \"searchById\": \"<string>\",\n \"tag\": \"<string>\",\n \"uploadedBy\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\",\n \"includeFields\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web.edcontrols.com/api/v2/data/file/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 \"groupid\": \"<string>\",\n \"searchByName\": \"<string>\",\n \"searchById\": \"<string>\",\n \"tag\": \"<string>\",\n \"uploadedBy\": \"<string>\",\n \"includeActive\": true,\n \"includeArchived\": true,\n \"archived\": true,\n \"filterRole\": \"<string>\",\n \"roleMailAddress\": \"<string>\",\n \"fromDate\": \"2023-11-07T05:31:56Z\",\n \"untilDate\": \"2023-11-07T05:31:56Z\",\n \"sortby\": \"<string>\",\n \"aggregate\": \"<string>\",\n \"includeFields\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"size": 123,
"page": 123,
"hits": 123,
"results": [
{}
],
"aggregations": {}
}{
"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
Response
Search envelope.
