GET imcc/v1/record/search π°
Search for your records and return metadata and media information
Resource URL
https://{MEDIACONTROLCENTRE_HOST}[:PORT]/imcc/v1/record/search
Resource Information
| Response formats | XML |
| Requires authentication? | Yes |
| Required scope(s) | readUsersData |
Β
Β
Parameters
Arguments should be supplied as query parameters in the manner shown below
Β
query
Required
/imcc/v1/record/search?query=WHERE {field}={"Query"}
Β
timeout
Optional
?timeout={Timeout in seconds}
numrecords
Optional
&numRecords=m (number of records of the search to return)
start
Optional
&start={index of first record in the results that you want returned}
MUST be used with
searchID
Optional
&searchID={Search ID}Β
NOTE: searchID will be returned in the response to call for first page of results (and each subsequent call there after).
includeMedia
Optional
&includeMedia=true
This optional parameter returns Media Objects with the call
Example REST request
https://{MEDIACONTROLCENTRE_HOST}[:PORT]/imcc/v1/record/search?query=WHERE Title="Red Car"
Example Response
Returns success, or an error response on failure.
Response on success
<?xmlΒ version="1.0"Β encoding="UTF-8"?>
<Records>
Β Β Β <SearchID>F4DCC517-83DA-4ce9-9AD2-24E9EB3444E2</SearchID>
Β Β Β <TotalHits>1</TotalHits>
Β Β Β <ImagenRecordΒ ID="49"Β CanEdit="false">
Β Β Β Β Β Β Β <Fields>
Β Β Β Β Β Β Β Β Β Β Β <guid>9A9A8A08-4A82-4f9c-8CC1-0C93631C5EC9</guid>
Β Β Β Β Β Β Β Β Β Β Β <Title>Red Car</Title>
Β Β Β Β Β Β Β Β Β Β Β <Date></Date>
Β Β Β Β Β Β Β Β Β Β Β <Summary></Summary>
Β Β Β Β Β Β Β Β Β Β Β <imagenLastRecordChange>2022-03-28 10:50:58</imagenLastRecordChange>
Β Β Β Β Β Β Β </Fields>
Β Β Β </ImagenRecord>
</Records>
Β
π‘Pro Tip: All record metadata will be returned by the call. Not just those fields chosen for the search index