Query Archived Items
get
/content/management/api/v1.1/archive/items
This resource enables filtering of management content by query. You can control the number of items to be fetched, paginated, and sorted. Additionally, this resource can fetch field values of matching items.
Query expression syntax supports conditions that match the field values. A NOT operator is supported and negates the results of matches it applies to - e.g. NOT (type eq "Type1"). Note that the space between the NOT and the following opening brace is required. You can also query across all fields for a specific phrase. Many such query conditions can be joined by using AND/OR operators and grouped with parentheses.
Notes: Field names used in the Query are case-sensitive.
In general, two forms of filtering are supported by this resource.
In either form, it is possible to search by matching anywhere (any field) by specifying a default match criteria. Such criteria are specified in a generic query that matches values of the items across all fields.
For example:
/management/api/v1.1/archive/items?default="coffee"
/management/api/v1.1/archive/items?q=(type eq "Employee")&default="senior"
In either form, while querying using standard fields, name, description, type, typeCategory, slug, language, status are to be considered as a text data type (single valued), id, repositoryId as a reference data type (single valued), createdDate, updatedDate, archivedDate as a datetime data type (single valued), translatable, isPublished, languageIsMaster, isRestoreScheduled as a boolean data type (single valued) and collections, channels, tags, taxonomies, suggestedTaxonomies as a reference data type (multi valued)
.
Notes: message in response indicates that this is possibly an abnormal search result set. For e.g., a database based search in the event of backend search service being unavailable.Query matching text in any field and the binary file Searching in the fields and binary file text (typed searches for content or digital assets). Searching in the fields and binary file's text is supported using anyField parameter in the search query within a type or across specific types. Supported operators are co, nc and mt.
Example:
?q=(type eq "contentType1" AND anyField co "Employee")
?q=({type eq "contentType1" AND anyField mt "installed"} OR {type eq "cdt1" AND anyField mt "installed"})
Query expression syntax supports conditions that match the field values. A NOT operator is supported and negates the results of matches it applies to - e.g. NOT (type eq "Type1"). Note that the space between the NOT and the following opening brace is required. You can also query across all fields for a specific phrase. Many such query conditions can be joined by using AND/OR operators and grouped with parentheses.
Query expression | ?q=(type eq "Employee" AND (fields.emails co "example.com" OR fields.emails co "example.org")) |
Query expression usage with this resource | /management/api/v1.1/archive/items?q=(type eq "Employee" AND (fields.emails co "example.com" OR fields.emails co "example.org")) |
Notes: Field names used in the Query are case-sensitive.
In general, two forms of filtering are supported by this resource.
- Query within a type: Query within a type allows query conditions that apply to fields of the type.
For example:
/management/api/v1.1/archive/items?q=(type eq "Employee" AND fields.role eq "Senior Developer")
Here, role is a field of type Employee.
Two level deep searches (typed searches only):
Fields on first level reference fields of an item may also be searched, effectively providing a way to delve two levels deep into an item's field hierarchy. The second level provides the same semantics as those provided during searching fields of an item. Searching recursively down an item's reference hierarchy past the first level is not supported. Searching on a reference field of type any is not supported. Sorting by second level fields is not supported.
For example:
/management/api/v1.1/archive/items?q=(type eq "Employee" AND fields.address.street eq "Main St")
Here, 'address' is the name of a reference type field on type 'Employee' that in turn has a field with name 'street'. - Query across types: When no type is specified in the query, all types are queried. Also, multi type query is allowed and depending on how it is specified may either treated as a global query or a query across multiple types. A query that references multiple types using brackets ( ) is treated as a global query and query conditions are limited to standard fields (id, type, name, description, typeCategory, slug, translatable, language, createdBy, createdDate, updatedBy, updatedDate, repositoryId, channels, collections, status, tags, isPublished, languageIsMaster, taxonomies, isRestoreScheduled, archivedBy, archivedDate) only.
For example:
/management/api/v1.1/archive/items?q=(name eq "John" and (type eq "t1" or type eq "t2")) or /management/api/v1.1/archive/items?q=(description co "users" and (type eq "t1" or type eq "t2")).
A query that references multiple types using braces { } is treated as a generic query across types with the ability to reference standard and user defined fields.
For example:
/management/api/v1.1/archive/items?q=name eq "John" and {type eq "t1" and fields.ud1 eq "ud1val"} or {type eq "t2" and fields.ud2 eq "ud2val"}
Characteristics of the brace style query across types.- A cross-type search is specified by enclosing type predicates in the query (q) parameter in curly braces { }.
- Only one type may be specified in a matching set of braces.
- Nested braces are not allowed.
- Braces and brackets may be combined.
- Query predicates specified outside braces behave like they were specified using brackets.
- Examples -
- {type eq "t1" and repositoryid eq "r1"}
- {type eq "t1" and repositoryid eq "r1" and fields.ud1 eq "ud1"} - "ud1" has to be a field on type "t1". Query validation will fail if that is not the case.
- {type eq "t1" and repositoryid eq "r1"} and {type eq "t2" and repositoryid eq "r1"} - This is a valid query but would return zero results.
- {type eq "t1" and fields.ud1 eq "ud1"} or {type eq "t2" and fields.ud2 eq "ud2"} - "ud1" has to be a field on type "t1" and "ud2" has to be a field on type "t2"
- {type eq "t2" and fields.ud2 eq "ud2"} or type eq "t1" and fields.ud1 eq "ud1" ??? Bracket style search that resolves to type "t1" and brace style search that resolves to type "t2" and is valid if "ud1" is a field on "t1" and "ud2" is a field on "t2".
In either form, it is possible to search by matching anywhere (any field) by specifying a default match criteria. Such criteria are specified in a generic query that matches values of the items across all fields.
For example:
/management/api/v1.1/archive/items?default="coffee"
/management/api/v1.1/archive/items?q=(type eq "Employee")&default="senior"
In either form, while querying using standard fields, name, description, type, typeCategory, slug, language, status are to be considered as a text data type (single valued), id, repositoryId as a reference data type (single valued), createdDate, updatedDate, archivedDate as a datetime data type (single valued), translatable, isPublished, languageIsMaster, isRestoreScheduled as a boolean data type (single valued) and collections, channels, tags, taxonomies, suggestedTaxonomies as a reference data type (multi valued)
Operator | Example | Supported data types | Description |
---|---|---|---|
eq | ?q=(name eq "John") ?q=(type eq "DigitalAsset") ?q=(type eq "Employee" and fields.DOB eq "1994/09/26T16:23:45.208") ?q=(type eq "File" and fileextension eq "docx") ?q=(taxonomies.id eq "773CDF9B048E429D856F3CA2A14A9CEA") ?q=(taxonomies.categories.id eq "B9F568DC43C54803AC76012783FA5101") ?q=(taxonomies.categories.name eq "cars") ?q=(taxonomies.categories.apiName eq "cars-unique") ?q=(taxonomies.categories.nodes.id eq "B9F568DC43C54803AC76012783FA5101") ?q=(taxonomies.categories.nodes.name eq "cars") ?q=(taxonomies.categories.nodes.apiName eq "cars") ?q=(suggestedTaxonomies.categories.id eq "B9F568DC43C54803AC76012783FA5101") ?q=(colorTags.tagName eq "#ff0000") | text, reference, number, decimal, boolean, datetime. | Equals operator (eq) matches the exact value supplied in the query. This operator is not applicable to multivalued data types. The value provided with this operator is not case-sensitive except for standard fields. This operator considers even special characters in the value. |
ne | ?q=(name ne "John") | text, reference, number, decimal, boolean, datetime. | Not Equals operator (ne) matches items that do not match the exact value supplied in the query. This operator is not applicable to multivalued data types. The value provided with this operator is not case-sensitive except for standard fields. This operator considers even special characters in the value. |
co | ?q=(type eq "Employee" AND name co "john alex") ?q=(type eq "Car" AND fields.features co "manual") ?q=(taxonomies.categories.name co "red") ?q=(taxonomies.categories.nodes.name co "car") | text, reference, number, decimal, datetime, largetext | Contains operator (co) matches every word given in the criteria. The words are formed by splitting the value by special characters. It gives the results that have at least one of the words (in this example, john or alex or both). This operator does not consider special characters in the value while searching. This operator does not perform a search on stop words. This operator is applicable to text, largetext in case of single-valued attributes, whereas for multivalued attributes, it is applicable to text, reference, number, decimal, datetime, largetext. To understand the possible datetime formats, refer to the Supported date/datetime formats (24Hrs) table below. The value provided with this operator is not case-sensitive. |
nc | ?q=(name nc "john alex") | text, reference, number, decimal, datetime, largetext | Not Contains operator (nc) matches items that would not match a co operator with the same criteria. |
sw | ?q=(type eq "Employee" AND name sw "Joh") ?q=(type eq "Employee" AND fields.city sw "Los") ?q=(taxonomies.categories.name sw "cat") ?q=(taxonomies.categories.nodes.name sw "red") | text | Starts With operator (sw) matches only the initial character values given in the field condition. This operator is not applicable to multivalued data types. The value provided with this operator is not case-sensitive. |
ge | ?q=(type eq "Employee" AND fields.age ge "40") ?q=(type eq "DigitalAsset" AND updatedDate ge "20171026") | number, decimal, datetime | Greater than or equal to operator (ge) matches only numeric and datetime values. To understand the possible datetime formats, refer to the Supported date/datetime formats (24Hrs) table below. This operator is not applicable to multivalued data types. |
le | ?q=(type eq "Employee" AND fields.weight le "60.6") | number, decimal, datetime | Less than or equal to operator (le) matches only numeric and datetime values. To understand the possible datetime formats, refer to the Supported date/datetime formats (24Hrs) table below. This operator is not applicable to multivalued data types. |
gt | ?q=(type eq "Employee" AND fields.age gt "20") | number, decimal, datetime | Greater than operator (gt) matches only numeric and datetime values. To understand the possible datetime formats, refer to the Supported date/datetime formats (24Hrs) table below. To understand the possible datetime formats, refer to the Supported date/datetime formats (24Hrs) table below. This operator is not applicable to multivalued data types. |
lt | ?q=(type eq "Employee" AND fields.age lt "20") ?q=(type eq "Employee" AND createdDate lt "1994/09/26T16:23:45.208") | number, decimal, datetime | Less than operator (lt) matches only numeric and datetime values. To understand the possible datetime formats, please refer to the section: Supported date/datetime formats (24Hrs). This operator is not applicable to multivalued data types. |
mt | ?q=(type eq "Car" AND fields.review mt "petrol 20KMPL") ?q=(type eq "Employee" AND name mt "Jo?n") ?q=(type eq "Employee" AND name mt "Jo*") ?q=(type eq "Employee" AND fields.role mt "senior*") | text, largetext | Phrase query or proximity search (matches) operator (mt) enables you to find words that are within a specific distance to one another. Results are sorted by best match. It is useful for searching content items when values given in the criteria "petrol 20kmpl" need to discover actual content that may contain "petrol fuel mileage runs 20KMPL in the speed way". Matches operator can use a wildcard (? or *) to match multiple characters within the given value. This operator is applicable to both single-valued and multivalued data types. This operator does not perform a search on stop words. The value provided with this operator is not case-sensitive. For matching exact phrases enclose search terms in double quotes. Enclosing double quotes will be treated as part of the search term in all other contexts. |
sm | ?q=(type eq "Employee" And fields.city sm "Rome") | text, largetext | Similarity query operator. This operator allows searching for values that sound like specified criteria - also called fuzzy search, which uses by default a maximum of two edits to match the result. "Rome" is similar to "Dome". This operator is applicable to both single-valued and multivalued data types. The value provided with this operator is not case-sensitive. |
AND | ?q=(type eq "Employee" AND name eq "John" AND fields.age ge "40") | -NA- | AND operator, can be used to put an AND condition between multiple query conditions. This takes precedence over OR. |
OR | type eq "Employee" AND name eq "John" OR fields.age ge "40" | -NA- | OR operator can be used to put an OR condition between multiple query conditions. |
( ) | ?q=(type eq "Employee" AND (name eq "John" AND fields.age ge "40")) ?q=(type eq "Employee" AND ( (name eq "John" AND fields.age ge "40") OR fields.weight ge 60)) | -NA- | Parenthesis, enclosing operator to group the conditions in the criteria. This takes highest precedence, followed by AND, and then by OR. |
Additional Notes | |
---|---|
Type specific query | This query always uses only the eq operator. eq works with case-sensitive type name. Multitype query is supported, such as q=(type eq "Employee" OR type eq "Address"), however, it will be query across types. Example: q=(type eq "Employee" OR type eq "DigitalAsset") is supported because of single type search. |
Date query | Date query is a special type of query because of various date formats associated with it. All the datetime values in the query are assumed to be in the UTC (timezone) only, unless the offset is added in ISO 8901 format. The query results will always be in UTC timezone format for all datetime fields. Fields with the datatype datetime should use the operators ge, gt, le, lt for range query and use eq for an equals match. Example: Query Products by manufactureDate (datetime) field using the ge operator. https://{cecsdomain}/content/management/api/v1.1/archive/items?q=(type eq "Product" AND fields.manufactureDate ge "1989-03-26"). The given date format is YYYY-MM-DD. Explore more date/datetime specific query examples in the Examples section and also to understand the accepted date/datetime formats in the section below (supported date/datetime formats). |
Decimal values | Decimal number query is supported up to 3 digits after decimal points, and the rest of the digits after 3 will be ignored. https://{cecsdomain}/content/management/api/v1.1/archive/items?q=(type eq "Product" AND fields.price ge 425.3214), will result in all the products where price is greater than or equal to 425.321. |
Large text datatype query | Fields with the datatype largetext are not stored, so the query result cannot return its value. But the field value can be used in a query condition. |
Generic query search | Generic query search is a default search query, which can be used when the user can search by only value without using any field name or operators. Internally generic search uses the co operator. This query does not support wildcard characters. This search does not perform search on stop words. Example: ?q=(type eq "Employee")&fields=all&default=John. This will return the search results for the Employee type where the value John matches to field name , description or any user-defined fields. Example: ?q=(type eq "Article")&default=skating. This will return the search results for Article type where the value skating matches to fields name, description or any user-defined fields. |
ID search | Search query using id attribute. Example: ?q=(type eq "Employee" AND id eq "COREAF29AC6ACA9644F9836E36C7B558F316"). The value of id belongs to the item being queried itself, here the id of type Employee. It is possible to include multiple item ids in the query expression Example: ?q=(type eq "Employee" AND (id eq "COREAF29AC6ACA9644F9836E36C7B558F316" OR id eq "COREAF29AC6ACA9644F9836E36C7B558F987")). |
Taxonomy search | Search items with given taxonomy id. Example: ?q=(taxonomies.id eq "773CDF9B048E429D856F3CA2A14A9CEA") The value of taxonomies.id belongs to the taxonomy assigned to items being queried. It is possible to include multiple taxonomy ids in the query expression. |
Category search | Search items categorized with given category id, category name, category apiName, category node id, category node name or category node apiName attributes. Example: ?q=(taxonomies.categories.id eq "9E1A79EE600C4C4BB727FE3E39E95489") The value of taxonomies.categories.id belongs to the category assigned to items being queried. It is possible to include multiple category ids or names in the query expression. Example: ?q=(taxonomies.categories.name co "cars" OR taxonomies.categories.name sw "red") Example: ?q=(taxonomies.categories.apiName eq "All-furnitures") The value of taxonomies.categories.apiName belongs to the category assigned to items being queried. It is possible to include multiple category apiName values in the query expression. Example: ?q=(taxonomies.categories.nodes.id eq "9E1A79EE600C4C4BB727FE3E39E95489") The value of taxonomies.categories.nodes.id belongs to any node of categories assigned to items being queried. It is possible to include multiple category node ids or node names in the query expression. Example: ?q=(taxonomies.categories.nodes.name co "cars" OR taxonomies.categories.nodes.name sw "red") Example: ?q=(taxonomies.categories.nodes.apiName eq "All-furnitures" OR taxonomies.categories.nodes.apiName eq "all-accessories") The value of taxonomies.categories.nodes.apiName belongs to any node of categories assigned to items being queried. It is possible to include multiple category node apiName values in the query expression. |
Scheduled Restore status search | Search items by scheduled for restore status. Example: ?q=isRestoreScheduled eq "true" Lists all the archived items that are scheduled for restore. Example: ?q=isRestoreScheduled eq "false" Lists all the archived items that are not scheduled for restore. |
Reference field search | Search query using reference attribute. Example: ?q=(type eq "Employee" AND fields.department eq "COREAF29AC6ACA9644F9836E36C7B558F412"). The value of department belongs to the id of an item of type Department. |
Query matching text in binary file | Searching in binary file text (typed searches for digital assets only). Searching in the digital assets' binary file's text is supported using metadata.extractedText parameter in the search query within a type or across specific types. Supported operators are co, nc and mt. Example: ?q=(type eq "File" AND metadata.extractedText co "Employee") ?q=((type eq "cdt1" or type eq "cdt2") AND metadata.extractedText mt "installed") |
Supported date/datetime formats (24Hrs) | |
---|---|
Format | Example |
YYYY-MM-DD | 1989-03-26 |
YYYY/MM/DD | 1989/03/26 |
DD-MM-YYYY | 26-03-1989 |
DD/MM/YYYY | 26/03/1989 |
YYYY-MM-DD''T''hh:mm:ss | 1989-03-26T18:32:38 |
YYYY/MM/DD''T''hh:mm:ss | 1989/03/26T18:32:38 |
DD-MM-YYYY''T''hh:mm:ss | 26-03-1989T18:32:38 |
DD/MM/YYYY''T''hh:mm:ss | 26/03/1989T18:32:38 |
YYYY-MM-DD''T''hh:mm:ss.SSS | 1989-03-26T18:32:38.840 |
YYYY/MM/DD''T''hh:mm:ss.SSS | 1989/03/26T18:32:38.840 |
DD-MM-YYYY''T''hh:mm:ss.SSS | 26-03-1989T18:32:38.840 |
DD/MM/YYYY''T''hh:mm:ss.SSS | 26/03/1989T18:32:38.840 |
YYYYMMDD | 19890326 |
YYYYMMDDhhmmss | 19890326183238 |
YYYYMMDDhhmmssSSS | 19880326183238840 |
YYYY-MM-DD''T''hh:mm:ss.SSS+/-HH:mm | 1989-03-26T18:32:38.840+05:30 |
YYYY-MM-DD''T''hh:mm:ss+/-HH:mm | 1989-03-26T18:32:38+05:30 |
Notes: message in response indicates that this is possibly an abnormal search result set. For e.g., a database based search in the event of backend search service being unavailable.
Example:
?q=(type eq "contentType1" AND anyField co "Employee")
?q=({type eq "contentType1" AND anyField mt "installed"} OR {type eq "cdt1" AND anyField mt "installed"})
Request
Query Parameters
-
channelToken(optional): string
This parameter accepts channelToken of a channel and is used to control the returned results. The result will contain only items, targeted to the channel that the specified channelToken belongs to. This can also be achieved by specifying the channels (standard field of an item) contains query condition (channels co "{channelId}") as one of the query conditions in the q query parameter. This is an optional parameter and by default returns all the results.
-
default(optional): string
Default search query expression, that matches values of the items across all fields.
-
defaultOperator(optional): string
Default search query operator. This parameter is optional. It accepts 'or' and 'and' operators. If not provided, defaultOperator would be considered as 'or'.
-
expand(optional): string
This parameter is used to allow user to get permissions on each item. Accepts permissions only. Cannot be combined with returnMaster=true. And limit must not be greater than 100.
-
fields(optional): string
This parameter is used to control the returned fields in each archived item in the result. This parameter accepts a comma-separated list of field names or all. These fields will be returned for each items in the result. All the field names are case-sensitive, and users must provide the correct field name in the query. All the user-defined field names should be provided with prefix fields and followed by period (.). When fields is specified as all (case-insensitive), all the standard fields are returned in case of query across types and in case of type specific query, all standard and user fields are returned. This parameter is optional in the query, and by default the result shows only standard fields name, description. The standard fields id, type are always returned irrespective of any field asked. Any incorrect or invalid field name given in the query will throw an error.In the context of a brace style cross-type query, type specific fields may be specified using syntax name,{typename1:fields.userdefinedfieldname1,fields.userdefinedfieldname2},{typename2:fields.userdefinedfieldname1}. In the preceding example, all items of type typename1 will have fields - name, userdefinedfieldname1 and userdefinedfieldname2, while all items of type typename2 will have fields - name, userdefinedfieldname1. If the cross-type query does not resolve to types referenced in the typed fields clause(s), an error will be thrown.
It is also possible to return existing metadata for assets specifying fields as metadata or metadata.exif. Currently, only EXIF metadata is available for newly uploaded images.
Example: This returns standard fields name, user fields state and country of type Address in the search results.
https://{cecsdomain}/content/management/api/v1.1/archive/items?q=type eq "Address"&fields=fields.state,fields.country
Example: This returns all the attributes for a specific type used in the search results.
https://{cecsdomain}/content/management/api/v1.1/archive/items?q=type eq "Address"&fields=all
Example: This returns standard fields name, createdBy in the search results for all archived items across all the types.
https://{cecsdomain}/content/management/api/v1.1/archive/items?fields=name,createdBy
Example: This returns standard fields name, archivedBy in the search results for all archived items across all the types.
https://{cecsdomain}/content/management/api/v1.1/archive/items?fields=name,archivedBy
Example: This returns all the standard fields in the search results for all items across all the types.
https://{cecsdomain}/content/management/api/v1.1/archive/items?fields=all
Example: This returns the available metadata in the search results for all items across all the types.
https://{cecsdomain}/content/management/api/v1.1/archive/items?fields=metadata
Example: This returns the available EXIF metadata in the search results for all items across all the types.
https://{cecsdomain}/content/management/api/v1.1/archive/items?fields=metadata.exifDefault Value:name,description,repositoryId,slug,language,translatable,createdDate,updatedDate,archivedBy,archivedDate,isRestoreScheduled,fileExtension
-
limit(optional): integer(int32)
This parameter accepts a non negative integer and is used to control the size of the result. The maximum value allowed for limit is 500. If offset+limit > 10000, then we treat limit as 10000-offset and give results.Default Value:
100
-
links(optional): string
This parameter accepts a comma-separated list of link names. By default, this parameter gives all the links applicable. Possible values are: self, canonical, describedby, first, last, prev, next
-
offset(optional): integer(int32)
This parameter accepts a non negative integer less than 10000 and is used to control the start index of the result.Default Value:
0
-
orderBy(optional): string
The orderBy parameter is used to control the order (ascending/descending) of queried items.
This parameter is optional in the query and by default the results are sorted in the descending order of search score when default parameter is empty. When default parameter has value(s), the results are sorted by the relevance of tags of the items to the default values.
This parameter accepts featured() or field name separated by a colon (:) ,for which the user wants to sort the results and sort order. Multiple sort orders are separated by semicolon (;).
format : orderBy={fieldName1}:{asc/desc};{fieldName2}:{asc/desc} (*Note : asc stands for ascending and desc for descending. asc and desc are always in lower case.)
In a type-specific query, field names can be either standard fields (name, createdDate, updatedDate) or user-defined fields (single-valued data types (number, decimal, datetime). All the user-defined field names should be provided with prefix fields and followed by a period (.). In the context of a cross-type search, this parameter can also have a typed section and takes the form {typename1:fields.userdefinedfieldname1:asc|desc};{typename2:fields.userdefinedfieldname1:asc|desc}. The order by parameter only supports one order by field per set of matching braces. While filtering on suggestedTaxonomies the default sort order will by relevance of the suggestion to the item.
OrderBy parameter also supports sorting by a two level field. If there is a two level sort field, then it can be the only sort field in the OrderBy parameter.
OrderBy parameter also supports sorting by taxonomy root categories and sub-categories of a root category. The additional sorting parameters are
taxonomies.shortName["short name of taxonomy"]:{asc/desc}; taxonomies.categories.nodes.name["short name of taxonomy"|"taxonomy name","category1","category2","category3"] where category1, category2,category3, etc.
are sub-categories of a given taxonomy "taxonomy name".
The sort order is optional, and by default it is descending. Any incorrect or invalid field name given in the query will be ignored. When featured() is given and default parameter has value(s), the results are sorted by the relevance of tags of the items to the default values
Example : orderBy=name:asc
Returns all the items in the ascending order of name.
Example : orderBy=updateDate:asc
Returns all the items in the ascending order of updateDate.
Example : orderBy=fields.age:desc
Returns all the items in the descending order of age.
Example : orderBy=fields.age
Returns all the items in the ascending order of age.
Example : default=apples&orderBy=featured()
Returns all the items sorted by the relevance of tags of the items to the apples
Example : orderBy=fields.blogauthor.authorage
Returns all the items in the ascending order of age of the author referred by referenced field "blogauthor".
Example : orderBy=fields.blogauthor.fields.authorage&twolvl_v1_1=true
Returns all the items in the ascending order of age of the author referred by referenced field "blogauthor".
Example : orderBy=taxonomies.shortName["loc"];taxonomies.categories.nodes.name["loc"|"Location","emea","china","industry"];
taxonomies.categories.nodes.name["loc"|"Location","americas","brazil","industry"]
Returns all the items in the ascending order of root category of "loc", sub-categories of category having path "/Location/emea/china/industry", sub-categories of category having path "/Location/americas/brazil/industry". -
q(optional): string
This parameter accepts a query expression condition that matches the field values. Many such query conditions can be joined using AND/OR operators and grouped with parentheses. The value of query condition follows the format of {fieldName} {operator} "{fieldValue}". In case of type specific query the field names are limited to standard fields and user defined fields (except fields of largeText data type). The only values allowed in the operator are eq (Equals), co (Contains), sw (Startswith), ge (Greater than or equals to), le (Less than or equals to), gt (Greater than), lt (Less than), mt (Matches), sm (Similar).
Example:
https://{cecsdomain}/content/management/api/v1.1/archive/items?q=(name eq "John")
Example:
https://{cecsdomain}/content/management/api/v1.1/archive/items?q=(type eq "Employee" AND name eq "John")
Example:
https://{cecsdomain}/content/management/api/v1.1/archive/items?q=(type eq "Employee" AND ((name eq "John" AND field.age ge "40") OR fields.weight gt "70"))
Example:
https://{cecsdomain}/content/management/api/v1.1/archive/items?q=(taxonomies.categories.id eq "9E1A79EE600C4C4BB727FE3E39E95489" OR (taxonomies.categories.name co "cat" AND taxonomies.categories.name co "red"))
Example:
https://{cecsdomain}/content/management/api/v1.1/archive/items?q=(taxonomies.categories.nodes.id eq "9E1A79EE600C4C4BB727FE3E39E95489" OR taxonomies.categories.nodes.name co "cars") -
repositoryId(optional): string
This parameter accepts id of a repository and is used to control the returned results. The result will contain only items belonging to the specified repository. This can also be achieved by specifying the repositoryId (standard field of an item) equals query condition (repositoryId eq "{repositoryId}") as one of the query conditions in the q query parameter. This is an optional parameter and by default returns results from all the repositories.
-
scroll(optional): boolean
Specifying this parameter indicates that scroll behavior is expected from the search api. Scrolling is the recommended method for retrieving large result sets. Scrolling is not available when returnMaster is enabled. hasMore will always return false when scrolling is enabled. offset parameter value, if specified, will be ignored on scroll requests. limit parameter value will be interpreted in the context of scroll and be fixed for a scroll session. Subsequent changes to limit will be ignored for the scroll session. A limit that results in too large a response will result in a 413 (Payload Too Large) response status.Default Value:
false
-
scrollId(optional): string
This parameter is used to specify the scroll id. scrollTTL and the original value of the q parameter are always required with requests that use a scrollId to get consistent results. Note that the requirement to always include the q parameter in subsequent scroll requests is currently not validated against previous requests and changes to the parameter within the same scroll session are ignored.
-
scrollTTL(optional): integer(int32)
scrollTTL (in milliseconds - default and maximum value 30000 ms) specifies the period of inactivity allowed between the current and next scroll request. All responses to search with scroll include a scrollId. Subsequent scroll requests must include the scrollId returned from the previous response since the scrollId returned could change across requests. Since all scroll requests are stateless, scrollTTL is always expected. Value of scrollTTL does not have to be the same across requests. The original search query (q) is also expected with each subsequent scroll request. An invalid or expired scrollId will result in a 400 (Bad Request) response status.Default Value:
30000
-
totalResults(optional): boolean
This parameter accepts a boolean flag. If specified as true, then the returned result must include the total result count.Default Value:
false
-
twolvl_v1_1(optional): string
This parameter does not need a value and when used indicates that the two level search api uses (i) fields.refname.fieldname to search on system fields such as name, description, etc of the referred type; and (ii) fields.refname.fields.userfieldname to search on user defined fields of the referred type. When this parameter is not used, two level search behaves in compatibility mode and only supports searches like fields.reftype.fieldname. Furthermore, when fieldname is the same as a system defined field name, two level search behaves the same as fields.reftype.fields.fieldname.
Response
Supported Media Types
- application/json
200 Response
OK.
Root Schema : SearchArchivedItems
Type:
object
Search Archived Items
Show Source
-
aggregationResults(optional):
array aggregationResults
Aggregation results.
-
count(optional):
integer(int32)
Total number of records in the current response.
-
hasMore(optional):
boolean
Check whether there are more pages to fetch.
-
items(optional):
array items
Singular resources contained in the collection.
-
limit(optional):
integer(int32)
Actual page size used by the server. This might not be the same as what the client requests.
-
links(optional):
array links
Links of the resource.
-
offset(optional):
integer(int32)
The actual index from which the singular resources are returned.
-
pinned(optional):
array pinned
Pinned items. Shows items pinned at the top of search list
-
scrollId(optional):
string
scrollId if the search resolved to a scroll search.
-
totalResults(optional):
integer(int32)
Total number of rows that satisfy the client request (excluding the paging parameters.)
Nested Schema : items
Type:
array
Singular resources contained in the collection.
Show Source
-
Array of:
object ArchivedItem
Archived Item
Nested Schema : links
Type:
array
Links of the resource.
Show Source
-
Array of:
object Link
Link of the resource.
Nested Schema : pinned
Type:
array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : ArchivedItem
Type:
object
Archived Item
Show Source
-
archivedBy(optional):
string
Archived by.
-
archivedDate(optional):
object date
date
-
archiveFileLocation(optional):
string
-
archiveFileName(optional):
string
-
changes(optional):
object ItemSubResourceListChangesInfo
Item SubResource.
-
channels(optional):
object ItemSubResourceListChannelId
Item SubResource.
-
collections(optional):
object ItemSubResourceListCollectionId
Item SubResource.
-
connectorFileInfo(optional):
object ItemSubResourceConnectorFileInfo
Item SubResource.
-
connectorId(optional):
string
Connector Id of the item.
-
connectorSyncEnabled(optional):
boolean
Connector Sync Enabled flag of the item.
-
createdBy(optional):
string
Created by.
-
createdByUser(optional):
object User
User object
-
createdDate(optional):
object date
date
-
description(optional):
string
description of the item
-
fields(optional):
object fields
Read Only:
true
Additional Properties Allowed: additionalPropertiesUser-defined fields data. Map. All the user-defined fields required in the type definition must be provided under this property in PUT and POST request. -
fileExtension(optional):
string
Extension of the file.
-
id(optional):
string
id of the item. It is a required property in the get response and put request whereas it is not required in the post request.
-
isPublished(optional):
boolean
Whether the item is ever published.
-
isRestoreScheduled(optional):
boolean
Whether the item is scheduled for restore.
-
language(optional):
string
Language of the item.
-
languageIsMaster(optional):
boolean
Whether the item is master.
-
links(optional):
array links
Links
-
lockInfo(optional):
object ItemSubResourceLockInfo
Item SubResource.
-
metadata(optional):
object ItemMetadataInfo
ItemMetadataInfo
-
name(optional):
string
Name of the item. It is a required property in the get response and post/put request.
-
permissions(optional):
object ItemSubResourceListAction
Item SubResource.
-
publishedChannels(optional):
object ItemSubResourceListChannelId
Item SubResource.
-
publishInfo(optional):
object ItemSubResourceListPublishInfo
Item SubResource.
-
reference(optional):
object ItemReferenceInfo
ItemReferenceInfo
-
relationships(optional):
object ItemSubResourceRelationships
Item SubResource.
-
repositoryId(optional):
string
Repository of the item. It is a required property in the get response and post/put request.
-
scheduled(optional):
boolean
-
slug(optional):
string
URL slug of the item.
-
sourceId(optional):
string
Source Id.
-
status(optional):
string
Current status of the item.
-
suggestedTaxonomies(optional):
object ItemSubResourceListSuggestedTaxonomyInfo
Item SubResource.
-
tags(optional):
object ItemSubResourceListTag
Item SubResource.
-
taxonomies(optional):
object ItemSubResourceListTaxonomyInfo
Item SubResource.
-
translatable(optional):
boolean
Whether the item is translatable.
-
type(optional):
string
Name of the type. It is a required property in the get response and post/put request.
-
typeCategory(optional):
string
Read Only:
true
-
updatedBy(optional):
string
Updated by.
-
updatedByUser(optional):
object User
User object
-
updatedDate(optional):
object date
date
-
variations(optional):
object ItemSubResourceListVariationsInfo
Item SubResource.
-
version(optional):
string
The current revision version of this item.
-
versionInfo(optional):
object ItemSubResourceListVersionInfo
Item SubResource.
-
video(optional):
object VideoBean
VideoBean
-
workflowInstances(optional):
object WorkflowField
All mapped workflow fields
-
workflows(optional):
object ItemSubResourceListWorkflowInfo
Item SubResource.
Nested Schema : User
Type:
object
User object
Show Source
-
displayName(optional):
string
Read Only:
true
display name of the user. -
email(optional):
string
Read Only:
true
email of the user. -
userID(optional):
integer(int64)
Read Only:
true
id of the user. -
userName(optional):
string
Read Only:
true
name of the user.
Nested Schema : fields
Type:
object
Read Only:
true
Additional Properties Allowed
Show Source
User-defined fields data. Map. All the user-defined fields required in the type definition must be provided under this property in PUT and POST request.
Nested Schema : ItemMetadataInfo
Type:
object
ItemMetadataInfo
Show Source
-
exif(optional):
object EXIFMetadata
EXIF Metadata
-
links(optional):
array links
Links
-
transcripts(optional):
object VideoTranscriptMetadata
Video Transcription Metadata
Nested Schema : ItemReferenceInfo
Type:
object
ItemReferenceInfo
Show Source
-
isAccessible(optional):
boolean
Whether the item is accessible.
Nested Schema : VideoBean
Type:
object
VideoBean
Show Source
-
duration(optional):
string
Read Only:
true
The duration of the video in ISO 8601 format. -
isFormatSupported(optional):
boolean
Read Only:
true
A boolean expressing if the video file format is supported. -
playback(optional):
object PlaybackBean
PlaybackBean
-
processing(optional):
object ProcessingBean
ProcessingBean
-
strip(optional):
object StripBean
StripBean
Nested Schema : WorkflowField
Type:
object
All mapped workflow fields
Show Source
-
aggregationResults(optional):
array aggregationResults
Aggregation results.
-
count(optional):
integer(int32)
Total number of records in the current response.
-
hasMore(optional):
boolean
Check whether there are more pages to fetch.
-
items(optional):
array items
Singular resources contained in the collection.
-
limit(optional):
integer(int32)
Actual page size used by the server. This might not be the same as what the client requests.
-
links(optional):
array links
Links of the resource.
-
offset(optional):
integer(int32)
The actual index from which the singular resources are returned.
-
pinned(optional):
array pinned
Pinned items. Shows items pinned at the top of search list
-
scrollId(optional):
string
scrollId if the search resolved to a scroll search.
-
totalResults(optional):
integer(int32)
Total number of rows that satisfy the client request (excluding the paging parameters.)
Nested Schema : ChangesInfo
Type:
object
ChangesInfo
Show Source
-
links(optional):
array links
-
source(optional):
string
Sub-resource associated to this item which is source of this change.
-
type(optional):
string
Type of change tracked for the given source.
-
value(optional):
boolean
True indicates a change. False indicates no current changes for this source/type.
Nested Schema : Link
Type:
object
Link of the resource.
Show Source
-
href(optional):
string
The target resource's URI. It could be template URI. It is a required property in the get response.
-
mediaType(optional):
string
Media type.
-
method(optional):
string
What HTTP method can be used to access the target resource.
-
profile(optional):
string
Link to the metadata that describes the target resource.
-
rel(optional):
string
Relation type. It is a required property in the get response.
-
templated(optional):
boolean
Whether the URI is a template.
Nested Schema : ChannelId
Type:
object
ChannelId
Show Source
-
id(optional):
string
-
isPrimaryChannel(optional):
boolean
Indicates if channel is primary for an asset.
-
links(optional):
array links
Links
-
name(optional):
string
Nested Schema : ConnectorFileInfo
Type:
object
ConnectorFileInfo
Show Source
-
connectorId(optional):
string
Connector id.
-
id(optional):
string
File id.
-
inUse(optional):
boolean
Represents whether the latest version of asset is using the file content.
-
version(optional):
integer(int32)
File version
Nested Schema : additionalProperties
Type:
object
Nested Schema : LockInfo
Type:
object
LockInfo
Show Source
-
isLocked(optional):
boolean
Represents whether the item is locked or not.
-
lockedBy(optional):
string
Locked by user
-
lockedDate(optional):
object date
date
Nested Schema : EXIFMetadata
Type:
object
EXIF Metadata
Show Source
-
aggregationResults(optional):
array aggregationResults
Aggregation results.
-
count(optional):
integer(int32)
Total number of records in the current response.
-
hasMore(optional):
boolean
Check whether there are more pages to fetch.
-
items(optional):
array items
Singular resources contained in the collection.
-
limit(optional):
integer(int32)
Actual page size used by the server. This might not be the same as what the client requests.
-
links(optional):
array links
Links of the resource.
-
offset(optional):
integer(int32)
The actual index from which the singular resources are returned.
-
pinned(optional):
array pinned
Pinned items. Shows items pinned at the top of search list
-
scrollId(optional):
string
scrollId if the search resolved to a scroll search.
-
totalResults(optional):
integer(int32)
Total number of rows that satisfy the client request (excluding the paging parameters.)
Nested Schema : VideoTranscriptMetadata
Type:
object
Video Transcription Metadata
Show Source
-
aggregationResults(optional):
array aggregationResults
Aggregation results.
-
count(optional):
integer(int32)
Total number of records in the current response.
-
hasMore(optional):
boolean
Check whether there are more pages to fetch.
-
items(optional):
array items
Singular resources contained in the collection.
-
limit(optional):
integer(int32)
Actual page size used by the server. This might not be the same as what the client requests.
-
links(optional):
array links
Links of the resource.
-
offset(optional):
integer(int32)
The actual index from which the singular resources are returned.
-
pinned(optional):
array pinned
Pinned items. Shows items pinned at the top of search list
-
scrollId(optional):
string
scrollId if the search resolved to a scroll search.
-
totalResults(optional):
integer(int32)
Total number of rows that satisfy the client request (excluding the paging parameters.)
Nested Schema : items
Type:
array
Singular resources contained in the collection.
Show Source
-
Array of:
object ItemExtractedExifBean
ItemExtractedExifBean
Nested Schema : links
Type:
array
Links of the resource.
Show Source
-
Array of:
object Link
Link of the resource.
Nested Schema : pinned
Type:
array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : ItemExtractedExifBean
Type:
object
ItemExtractedExifBean
Show Source
-
floatValue(optional):
number(float)
The float value of the EXIF field. This value will be a numeric representation of the EXIF field value with decimal precision.
-
handle(optional):
string
The handle or EXIF field name. This value is not translatable.
-
integerValue(optional):
integer(int32)
The integer value of the EXIF field. This value will be a numeric representation of the EXIF field value without a decimal point.
-
links(optional):
array links
Links
-
rawId(optional):
string
The ID of the EXIF field. Uniquely identifies one EXIF field.
-
rawValue(optional):
string
The raw EXIF field value. This value can be a numeric value out of a predefined value list or a text value.
-
stringValue(optional):
string
The text value of the EXIF field. This value will be a text representation of the EXIF field value.
-
type(optional):
string
The data type of the EXIF field. (date, integer, float, string).
-
value(optional):
string
The display value of the EXIF field. This value will be a text representation of the actual type value of the EXIF field (date, int, float, string).
Nested Schema : items
Type:
array
Singular resources contained in the collection.
Show Source
-
Array of:
object Videotranscript
Video transcript
Nested Schema : links
Type:
array
Links of the resource.
Show Source
-
Array of:
object Link
Link of the resource.
Nested Schema : pinned
Type:
array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : Videotranscript
Type:
object
Video transcript
Show Source
-
end(optional):
string
End of each transcript node.
-
id(optional):
string
Id of each transcript node.
-
links(optional):
array links
Links
-
start(optional):
string
Start of each transcript node.
-
text(optional):
string
Text of each transcript node.
Nested Schema : Action
Type:
object
Action
Show Source
-
action(optional):
string
Allowed Values:
[ "view", "update", "create", "delete" ]
action is allowed on the resource
Nested Schema : PublishInfo
Type:
object
PublishInfo
Show Source
-
channel(optional):
string
Target name
-
links(optional):
array links
Links
-
publishedBy(optional):
string
Published by
-
publishedDate(optional):
object date
date
-
slug(optional):
string
Published slug
-
version(optional):
string
Published version
Nested Schema : Relationships
Type:
object
Relationships
Show Source
-
referencedBy(optional):
array referencedBy
Referenced by ids
-
referencedBySitePlan(optional):
object Siteplanreference
Site plan reference
-
referencedBySites(optional):
array referencedBySites
Referenced by sites
-
references(optional):
array references
Reference ids
Nested Schema : referencedBy
Type:
array
Referenced by ids
Show Source
-
Array of:
object References
References
Nested Schema : Siteplanreference
Type:
object
Site plan reference
Show Source
-
id(optional):
string
id of the site plan.
-
links(optional):
array links
Nested Schema : referencedBySites
Type:
array
Referenced by sites
Show Source
-
Array of:
object ReferencedBySites
ReferencedBySites
Nested Schema : references
Type:
array
Reference ids
Show Source
-
Array of:
object References
References
Nested Schema : References
Type:
object
References
Show Source
-
id(optional):
string
id of the item.
-
links(optional):
array links
-
reference(optional):
object ItemReferenceInfo
ItemReferenceInfo
Nested Schema : ReferencedBySites
Type:
object
ReferencedBySites
Show Source
-
component(optional):
string
Component of the item
-
pageId(optional):
string
Page the item added to
-
site(optional):
string
Site the item added to
Nested Schema : data
Type:
Show Source
array
-
Array of:
object SuggestedTaxonomyInfo
SuggestedTaxonomyInfo
Nested Schema : SuggestedTaxonomyInfo
Type:
object
SuggestedTaxonomyInfo
Show Source
-
categories(optional):
array categories
Categories in the Suggested Taxonomy the item belongs to.
-
id(optional):
string
-
links(optional):
array links
-
name(optional):
string
-
shortName(optional):
string
Nested Schema : categories
Type:
array
Categories in the Suggested Taxonomy the item belongs to.
Show Source
Nested Schema : ItemSuggestedCategoryInfo
Type:
Show Source
object
-
apiName(optional):
string
The apiName of the category assigned to the item.
-
id(optional):
string
-
isRejected(optional):
boolean
Status of the Suggested Category for the Item.
-
links(optional):
array links
-
name(optional):
string
-
nodes(optional):
array nodes
Nodes in the category assigned to the item.
-
order(optional):
integer(int32)
Probability order of the Suggested Category across all the Taxonomies assigned to the repository.
Nested Schema : CategoryNodeBean
Type:
Show Source
object
-
apiName(optional):
string
The apiName of the Category node.
-
id(optional):
string
The id of the Category node.
-
name(optional):
string
The name of the Category node.
Nested Schema : Tag
Type:
object
Tag.
Show Source
-
language:
string
language of the tag.
-
links(optional):
array links
Links
-
name:
string
Name of the tag.
Nested Schema : TaxonomyInfo
Type:
object
TaxonomyInfo
Show Source
-
categories(optional):
array categories
Categories in the Taxonomy the item belongs to.
-
id(optional):
string
-
links(optional):
array links
-
name(optional):
string
-
shortName(optional):
string
Nested Schema : ItemCategoryInfo
Type:
Show Source
object
-
apiName(optional):
string
The apiName of the category assigned to the item.
-
id(optional):
string
-
links(optional):
array links
-
name(optional):
string
-
nodes(optional):
array nodes
Nodes in the category assigned to the item.
Nested Schema : VariationsInfo
Type:
object
Variations Info.
Show Source
-
items(optional):
array items
Content item variations.
-
links(optional):
array links
-
masterItem(optional):
string
Master item.
-
setId(optional):
string
Variation set id.
-
varType(optional):
string
Variation type name.
Nested Schema : items
Type:
array
Content item variations.
Show Source
-
Array of:
object Language
LanguageItem
Nested Schema : Language
Type:
object
LanguageItem
Show Source
-
id(optional):
string
id of the item.
-
isPublished(optional):
boolean
Whether the item is ever published.
-
links(optional):
array links
-
name(optional):
string
name of the item.
-
status(optional):
string
status of item
-
value(optional):
string
Language value
Nested Schema : VersionInfo
Type:
object
VersionInfo
Show Source
-
latestVersion(optional):
string
Latest version
-
publishedVersion(optional):
string
Published version
Nested Schema : PlaybackBean
Type:
object
PlaybackBean
Show Source
-
adaptiveStreams(optional):
object AdaptiveStreamsBean
AdaptiveStreamsBean
Nested Schema : ProcessingBean
Type:
object
ProcessingBean
Show Source
-
progress(optional):
string
Read Only:
true
The progress of the background process. The value of this field will be one of PENDING, SUCCEEDED or FAILED.
Nested Schema : StripBean
Type:
object
StripBean
Show Source
-
frame(optional):
object StripFrameBean
StripFrameBean
Nested Schema : AdaptiveStreamsBean
Type:
object
AdaptiveStreamsBean
Show Source
-
dash(optional):
object PlaybackBean
PlaybackBean
-
hls(optional):
object PlaybackBean
PlaybackBean
Nested Schema : StripFrameBean
Type:
object
StripFrameBean
Show Source
-
count(optional):
integer(int32)
Read Only:
true
The number of frames in the strip image. -
height(optional):
integer(int32)
Read Only:
true
The height of the strip image. -
width(optional):
integer(int32)
Read Only:
true
The width of the strip image.
Nested Schema : items
Type:
array
Singular resources contained in the collection.
Show Source
-
Array of:
object WorkflowInfo
WorkflowInfo.
Nested Schema : links
Type:
array
Links of the resource.
Show Source
-
Array of:
object Link
Link of the resource.
Nested Schema : pinned
Type:
array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : WorkflowInfo
Type:
object
WorkflowInfo.
Show Source
-
id(optional):
string
Workflow id.
-
instanceId:
string
Workflow instance id.
-
isCompleted(optional):
boolean
If workflow instance is completed or not in OIC.
-
links(optional):
array links
Links
-
name(optional):
string
Workflow name.
-
status(optional):
string
Workflow status.
-
submittedBy(optional):
string
Submitted by user
-
submittedDate(optional):
object date
date
304 Response
Not modified.
400 Response
Bad request.
403 Response
Forbidden.
404 Response
Not found.
500 Response
Internal server error.
Examples
The following example shows how to Archive Items search by submitting a GET request using cURL.
curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/archive/items'
Example 1
/content/management/api/v1.1/archive/items
This lists all archived items.
Response Body
{ "hasMore": true, "offset": 0, "count": 2, "limit": 2, "items": [ { "name": "Image1.jpg", "fileExtension": "jpg", "description": "Image1 description", "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/CONTCA13C93924F9417091A6676EF598AD88", "rel": "self", "method": "GET", "mediaType": "application/json" } ], "id": "CONTCA13C93924F9417091A6676EF598AD88", "type": "DigitalAsset", "isRestoreScheduled": false, "archivedBy": "cecusername", "archivedDate": { "value": "2018-11-16T06:19:15.641Z", "timezone": "UTC" } }, { "name": "Item1", "fileExtension": "contentItem", "description": "Item1 description", "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/COREFFFEC388CFD044D8A34D2F8C46EA5786", "rel": "self", "method": "GET", "mediaType": "application/json" } ], "id": "COREFFFEC388CFD044D8A34D2F8C46EA5786", "type": "Type1", "isRestoreScheduled": true, "archivedBy": "cecusername", "archivedDate": { "value": "2018-11-16T06:19:15.641Z", "timezone": "UTC" } } ] }
Example 2
/content/management/api/v1.1/archive/items?fields=all
This lists all archived items by expanding all fields in results.
Response Body
{ "hasMore": true, "offset": 0, "count": 2, "limit": 2, "items": [ { "translatable": false, "updatedBy": "cecusername", "publishInfo": { "data": [ { "version": "1", "channel": "CCF8A7D0CD55E2F67DEA60735B0A7F9DF2673661B226", "publishedBy": "cecusername", "publishedDate": { "value": "2018-11-21T11:28:00.354Z", "timezone": "UTC" } }, { "version": "1", "channel": "CC1A40C0A9E74905B811D6208787B1D375C2E407C6D8", "publishedBy": "cecusername", "publishedDate": { "value": "2018-11-21T11:33:56.385Z", "timezone": "UTC" } } ], "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/CONTCA13C93924F9417091A6676EF598AD88/publishInfo", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, "isPublished": false, "versionInfo": { "data": [ { "latestVersion": "1", "publishedVersion": "1" } ], "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/CONTCA13C93924F9417091A6676EF598AD88/versionInfo", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, "description": "Image1 desc", "updatedDate": { "value": "2018-11-21T11:27:53.000Z", "timezone": "UTC" }, "type": "DigitalAsset", "isRestoreScheduled": false, "archivedBy": "cecusername", "archivedDate": { "value": "2018-11-16T06:19:15.641Z", "timezone": "UTC" }, "typeCategory": "DigitalAssetType", "version": "1", "createdDate": { "value": "2018-11-21T11:27:53.000Z", "timezone": "UTC" }, "channels": { "data": [ { "id": "CC1A40C0A9E74905B811D6208787B1D375C2E407C6D8" }, { "id": "CCF8A7D0CD55E2F67DEA60735B0A7F9DF2673661B226" } ], "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/CONTCA13C93924F9417091A6676EF598AD88/channels", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, "createdBy": "cecusername", "collections": { "data": [], "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/CONTCA13C93924F9417091A6676EF598AD88/collections", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, "name": "Image1.jpg", "fileExtension": "jpg", "repositoryId": "F34C5CC35EBE0CF859522674141C545B1B9C88797260", "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/CONTCA13C93924F9417091A6676EF598AD88", "rel": "self", "method": "GET", "mediaType": "application/json" } ], "id": "CONTCA13C93924F9417091A6676EF598AD88", "slug": null }, { "translatable": false, "updatedBy": "cecusername", "publishInfo": { "data": [], "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/COREFFFEC388CFD044D8A34D2F8C46EA5786/publishInfo", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, "isPublished": false, "versionInfo": { "data": [ { "latestVersion": "0.1" } ], "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/COREFFFEC388CFD044D8A34D2F8C46EA5786/versionInfo", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, "description": "Item1 description", "language": "en-US", "updatedDate": { "value": "2018-11-16T06:19:15.641Z", "timezone": "UTC" }, "type": "Type1", "typeCategory": "ContentType", "version": "0.1", "createdDate": { "value": "2018-11-16T06:19:15.641Z", "timezone": "UTC" }, "channels": { "data": [], "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/COREFFFEC388CFD044D8A34D2F8C46EA5786/channels", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, "taxonomies": { "data": [], "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/COREFFFEC388CFD044D8A34D2F8C46EA5786/taxonomies", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, "createdBy": "cecusername", "collections": { "data": [], "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/COREFFFEC388CFD044D8A34D2F8C46EA5786/collections", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, "name": "Item1", "fileExtension": "contentItem", "repositoryId": "FF3F3EA7B9AA02DAB862BD32428A3162608D14D20E49", "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/COREFFFEC388CFD044D8A34D2F8C46EA5786", "rel": "self", "method": "GET", "mediaType": "application/json" } ], "id": "COREFFFEC388CFD044D8A34D2F8C46EA5786", "slug": "1481786064272-type1-item1", "isRestoreScheduled": false, "archivedBy": "cecusername", "archivedDate": { "value": "2018-11-16T06:19:15.641Z", "timezone": "UTC" } } ] }
Example 3
/content/management/api/v1.1/archive/items?q=type eq \"Type1\""This lists all archive items of type: Type1.
Response Body
{ "hasMore": true, "offset": 0, "count": 1, "limit": 1, "items": [ { "name": "Item1", "fileExtension": "contentItem", "description": "Item1 description", "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/COREFFFEC388CFD044D8A34D2F8C46EA5786", "rel": "self", "method": "GET", "mediaType": "application/json" } ], "id": "COREFFFEC388CFD044D8A34D2F8C46EA5786", "type": "Type1", "isRestoreScheduled": false, "archivedBy": "cecusername", "archivedDate": { "value": "2018-11-16T06:19:15.641Z", "timezone": "UTC" } } ] }
Example 4
/content/management/api/v1.1/archive/items?q=repositoryId eq \"FF3F3EA7B9AA02DAB862BD32428A3162608D14D20E49\"&fields=name,repositoryId
This lists all archive items whose repositoryId equals FF3F3EA7B9AA02DAB862BD32428A3162608D14D20E49 and displays repositoryId in results.
Response Body
{ "hasMore": true, "offset": 0, "count": 1, "limit": 1, "items": [ { "name": "Item1", "description": "Item1 description", "repositoryId": "FF3F3EA7B9AA02DAB862BD32428A3162608D14D20E49", "links": [ { "href": "https://<hostname>/content/management/api/v1.1/archive/items/COREFFFEC388CFD044D8A34D2F8C46EA5786", "rel": "self", "method": "GET", "mediaType": "application/json" } ], "id": "COREFFFEC388CFD044D8A34D2F8C46EA5786", "type": "Type1", "isRestoreScheduled": false, "archivedBy": "cecusername", "archivedDate": { "value": "2018-11-16T06:19:15.641Z", "timezone": "UTC" } } ] }
Example 5
/content/management/api/v1.1/archive/items?default=horizontal&fields=id,metadata,type
This lists the id, metadata and type of all archive items that have the keyword `horizontal` as a field value.
Response Body
{ "hasMore": true, "offset": 0, "count": 1, "limit": 1, "items": [ { "metadata": { "exif": { "items": [ { "rawId": "37378", "handle": "Aperture", "rawValue": "169/100", "value": "1.8" }, { "rawId": "274", "handle": "Orientation", "rawValue": "1", "value": "Horizontal (normal)" } ], "links": [ { "href": "http://<hostname>/content/management/api/v1.1/archive/items/CONTBD1B71657BF14BC2ABB8D763E44975E8/metadata/exif", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, "links": [ { "href": "http://<hostname>/content/management/api/v1.1/archive/items/CONTBD1B71657BF14BC2ABB8D763E44975E8/metadata", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, "links": [ { "href": "http://<hostname>/content/management/api/v1.1/archive/items/CONTBD1B71657BF14BC2ABB8D763E44975E8", "rel": "self", "method": "GET", "mediaType": "application/json" } ], "id": "CONTBD1B71657BF14BC2ABB8D763E44975E8", "type": "Image", "isRestoreScheduled": false, "archivedBy": "cecusername", "archivedDate": { "value": "2018-11-16T06:19:15.641Z", "timezone": "UTC" } } ], "links": [ { "href": "http://<hostname>/content/management/api/v1.1/archive/items?fields=id,metadata,type&default=horizontal", "rel": "self", "method": "GET", "mediaType": "application/json" }, { "href": "http://<hostname>/content/management/api/v1.1/archive/items?fields=id,metadata,type&default=horizontal", "rel": "canonical", "method": "GET", "mediaType": "application/json" }, { "href": "http://<hostname>/content/management/api/v1.1/archive/items?fields=id,metadata,type&offset=0&default=horizontal", "rel": "first", "method": "GET", "mediaType": "application/json" }, { "href": "http://<hostname>/content/management/api/v1.1/archive/items?fields=id,metadata,type&offset=0&default=horizontal", "rel": "last", "method": "GET", "mediaType": "application/json" } ] }