List Repository Assigned Taxonomies
get
/content/management/api/v1.1/repositories/{id}/assignedTaxonomies
List assigned taxonomies under a repository.
Request
Path Parameters
-
id: string
id of the repository.
Query Parameters
-
fields(optional): string
This parameter is used to control the returned fields in each assigned taxonomy in the list. This parameter accepts a comma-separated list of field names. These fields will be returned for assigned taxonomy in the list. All the field names are case-sensitive, and users must provide the correct field names in the query. Each assigned taxonomy can have these fields: id, name, description, shortName, version, isPublishable, isForSiteManagement, createdBy, createdDate, updatedBy, updatedDate, allowedActions. This parameter is optional. If it is not present, the default fields would be returned in the response: id, name, description. Any incorrect or invalid field name given in the parameter will throw an error.
Example: ?fields=id,name,shortName,isForSiteManagement,allowedActions
This returns id, name, shortName, isForSiteManagement, and allowedActions fields for each assigned taxonomy.
-
limit(optional): integer(int32)
This parameter accepts a non negative integer and is used to control the size of the result.Default Value:
25
-
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 and is used to control the start index of the result.Default Value:
0
-
orderBy(optional): string
This parameter is used to control order of results. The value of this query parameter follow the format of fieldName:[asc/desc]. asc stands for ascending order, desc stands for descending order, default order is asc.The only fields allowed in the field name are name and updatedDate. The default value of this parameter is name:asc.Default Value:
name:asc
-
q(optional): string
This parameter accepts a query expression condition that matches the field values. Query conditions can be joined using AND operators and grouped with parentheses. The value of a query condition follows the format of {fieldName} {operator} "{fieldValue}". The only field names allowed are name, isForSiteManagement, and allowedActions. A query cannot include multiple same named fields.
The only allowed operator is eq (Equals) for isForSiteManagement and the allowed values are either "false" or "true".
The only allowed operator is co (Contains) for name and its value is case insensitive.
The only allowed operator is eq (Equals) for allowedActions and the allowed values are either "ASSET_CATEGORIZE" or "SITE_CREATE".
Example:
?q=(isForSiteManagement eq "true") AND (allowedActions eq "SITE_CREATE")
This query filters assigned taxonomies by both isForSiteManagement and allowedActions fields to return the Site Security taxonomies the user has Create Site permission.
Example:
?q=(allowedActions eq "ASSET_CATEGORIZE") AND (name co "org")
This query filters assigned taxonomies by both allowedActions and name fields to return the taxonomies with names containing "org" (case-insensitively) and the user has Categorize permission. -
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
Response
Supported Media Types
- application/json
200 Response
OK.
Root Schema : AssignedTaxonomies
Type:
object
AssignedTaxonomies
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 AssignedTaxonomy
AssignedTaxonomy
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 : AssignedTaxonomy
Type:
object
AssignedTaxonomy
Show Source
-
allowedActions(optional):
array allowedActions
The allowed actions of an assigned taxonomy. The actions can be "ASSET_CATEGORIZE" and "SITE_CREATE".
-
createdBy(optional):
string
The created by user of an assigned taxonomy.
-
createdDate(optional):
object date
date
-
description(optional):
string
The description of an assigned taxonomy.
-
id(optional):
string
The id of an assigned taxonomy.
-
isForSiteManagement(optional):
boolean
Whether an assigned taxonomy is for site management.
-
isPublishable(optional):
boolean
Whether an assigned taxonomy is publishable.
-
links(optional):
array links
The links of an assigned taxonomy resource.
-
name(optional):
string
The name of an assigned taxonomy.
-
shortName(optional):
string
The short name of an assigned taxonomy.
-
updatedBy(optional):
string
Updated by user of an assigned taxonomy.
-
updatedDate(optional):
object date
date
-
version(optional):
integer(int32)
The version of an assigned taxonomy.
Nested Schema : allowedActions
Type:
array
The allowed actions of an assigned taxonomy. The actions can be "ASSET_CATEGORIZE" and "SITE_CREATE".
Show Source
Nested Schema : links
Type:
array
The links of an assigned taxonomy resource.
Show Source
-
Array of:
object Link
Link of the resource.
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.
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 list assigned taxonomies under a repository by submitting a GET request using cURL.
curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/repositories/{id}/assignedTaxonomies'
Example:
This lists taxonomies that are assigned to the repository 720E2B7391E64FB9A1EB5FA6DEA8F4C7, with isForSiteManagement
field set to \"true\"
and name field containing \"org\"
case-insensitively, sorted by taxonomy name ascending.
/content/management/api/v1.1/repositories/720E2B7391E64FB9A1EB5FA6DEA8F4C7/assignedTaxonomies?offset=0&limit=10&orderBy=name:asc&q=(isForSiteManagement eq \"true\") AND (name co \"org\")&fields=id,name,description,shortName,version,isPublishable,isForSiteManagement,allowedActions&totalResults=true
Response Body
{ "hasMore": false, "offset": 0, "count": 2, "limit": 2, "totalResults": 2, "items": [ { "id": "FB8240D6DC70407F87ED111325D06F89", "name": "Organization1", "description": "organization one", "shortName": "ORG", "version": 1, "isPublishable": false, "isForSiteManagement": true, "allowedActions": [ "ASSET_CATEGORIZE", "SITE_CREATE" ], "links": [ { "href": "http://{hostname}/content/management/api/v1.1/taxonomies/FB8240D6DC70407F87ED111325D06F89", "rel": "self", "method": "GET", "mediaType": "application/json" } ] }, { "id": "9252676B0FD34FFCB40C6F65030001E7", "name": "Organization2", "description": "organization two", "shortName": "OR1", "version": 1, "isPublishable": false, "isForSiteManagement": true, "allowedActions": [], "links": [ { "href": "http://{hostname}/content/management/api/v1.1/taxonomies/9252676B0FD34FFCB40C6F65030001E7", "rel": "self", "method": "GET", "mediaType": "application/json" } ] } ], "links": [ { "href": "http://{hostname}/content/management/api/v1.1/repositories/720E2B7391E64FB9A1EB5FA6DEA8F4C7/assignedTaxonomies?q=(isForSiteManagement eq \"true\") AND (name co \"org\")&totalResults=true&offset=0&limit=10&orderBy=name:asc&fields=id,name,description,shortName,version,isPublishable,isForSiteManagement,allowedActions", "rel": "self", "method": "GET", "mediaType": "application/json" }, { "href": "http://{hostname}/content/management/api/v1.1/repositories/720E2B7391E64FB9A1EB5FA6DEA8F4C7/assignedTaxonomies?q=(isForSiteManagement eq \"true\") AND (name co \"org\")&totalResults=true&offset=0&limit=10&orderBy=name:asc&fields=id,name,description,shortName,version,isPublishable,isForSiteManagement,allowedActions", "rel": "canonical", "method": "GET", "mediaType": "application/json" }, { "href": "http://{hostname}/content/management/api/v1.1/metadata-catalog/repositories/720E2B7391E64FB9A1EB5FA6DEA8F4C7/assignedTaxonomies", "rel": "describedby", "method": "GET", "mediaType": "application/json" }, { "href": "http://{hostname}/content/management/api/v1.1/repositories/720E2B7391E64FB9A1EB5FA6DEA8F4C7/assignedTaxonomies?q=(isForSiteManagement eq \"true\") AND (name co \"org\")&totalResults=true&offset=0&limit=10&orderBy=name:asc&fields=id,name,description,shortName,version,isPublishable,isForSiteManagement,allowedActions", "rel": "first", "method": "GET", "mediaType": "application/json" }, { "href": "http://{hostname}/content/management/api/v1.1/repositories/720E2B7391E64FB9A1EB5FA6DEA8F4C7/assignedTaxonomies?q=(isForSiteManagement eq \"true\") AND (name co \"org\")&totalResults=true&offset=0&limit=10&orderBy=name:asc&fields=id,name,description,shortName,version,isPublishable,isForSiteManagement,allowedActions", "rel": "last", "method": "GET", "mediaType": "application/json" } ] }