List Repository Editorial Roles

get

/content/management/api/v1.1/repositories/{id}/editorialRoles

List custom editorial roles under a repository.

Request

Path Parameters
Query Parameters
  • This parameter is used to control the returned fields in each editorial role in the list. This parameter accepts a comma-separated list of field names or all. These fields will be returned for each editorial role in the list. All the field names are case-sensitive, and users must provide the correct field names in the query. Each editorial role has both standard fields (id, name, description, createdBy, createdDate, updatedBy, updatedDate) and additional fields (isUsed, hasPrivilegeGranted, contentPrivileges, taxonomyPrivileges). When fields is specified as all (case-insensitive), all the standard and additional fields are returned. This parameter is optional in the query, and by default the result shows only standard fields in the response. Any incorrect or invalid field name given in the query will throw an error. Note that the "id" field would always be returned even if it is not explicitly specified by this parameter.

    Example: ?fields=id,name,description
    This returns id, name, and description fields for each editorial role.
    Example: ?fields=all
    This will return all standard fields and all additional fields for each editorial role.
  • This parameter accepts a non negative integer and is used to control the size of the result.
    Default Value: 50
  • This parameter accepts a non negative integer and is used to control the start index of the result.
    Default Value: 0
  • 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.
    Default Value: name:asc
  • This parameter accepts a query expression condition that matches the field values. The value of query condition follows the format of {fieldName} {operator} "{fieldValue}". The only fieldNames allowed for now are isUsed and the only allowed operators for now are eq on isUsed. The only fieldValues allowed for now are true and false. This query param is optional with no default.
    Example:
    ?q=(isUsed eq "true")
  • This parameter accepts a boolean flag. If specified as true, then the returned result must include the total result count.
    Default Value: false
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : EditorialRoles
Type: object
EditorialRoles
Show Source
Nested Schema : aggregationResults
Type: array
Aggregation results.
Show Source
Nested Schema : items
Type: array
Singular resources contained in the collection.
Show Source
Nested Schema : pinned
Type: array
Pinned items. Shows items pinned at the top of search list
Show Source
Nested Schema : AggregationResult
Type: object
Show Source
Nested Schema : EditorialRole
Type: object
EditorialRole
Show Source
Nested Schema : contentPrivileges
Type: array
The privileges of asset type defined by a custom editorial role.
Show Source
Nested Schema : date
Type: object
date
Show Source
Nested Schema : taxonomyPrivileges
Type: array
The privileges of taxonomy defined by a custom editorial role.
Show Source
Nested Schema : ContentPrivilege
Type: object
ContentPrivilege
Show Source
Nested Schema : operations
Type: array
Operations.
Show Source
Nested Schema : TaxonomyPrivilege
Type: object
TaxonomyPrivilege
Show Source
Nested Schema : nodes
Type: array
The path of the category.
Show Source
Nested Schema : operations
Type: array
Operations.
Show Source
Nested Schema : CategoryNodeBean
Type: object
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

404 Response

Not found.

500 Response

Internal server error.
Back to Top

Examples

The following example shows how to list custom editorial roles 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}/editorialRoles'

Example

/content/management/api/v1.1/repositories/7F289D0F4FD44C0382A83EFD44A355C0/editorialRoles?limit=10&offset=0&orderBy=name:asc&q=isUsed eq \"true\"&fields=all

This lists first set of 10 editorial roles with all fields that are used by the repository with id 7F289D0F4FD44C0382A83EFD44A355C0, sorted by editorial role name ascending. If a type rule has a type that is not assigned to the repository, or a taxonomy rule has a taxonomy that is not assigned to the repository, that rule is marked as disabled.

Response Body

{
  "hasMore": false,
  "offset": 0,
  "count": 1,
  "limit": 10,
  "items": [
    {
      "id": "76F2903A0C8E48BCA222E68264BE1E05",
      "name": "Role 1019B",
      "description": "desc",
      "createdBy": "cecuser1",
      "createdDate": {
        "value": "2021-10-19T18:51:24.223Z",
        "timezone": "UTC"
      },
      "updatedBy": "cecuser1",
      "updatedDate": {
        "value": "2021-10-19T18:51:24.223Z",
        "timezone": "UTC"
      },
      "isUsed": true,
      "hasPrivilegeGranted": true,
      "contentPrivileges": [
        {
          "typeId": "",
          "typeName": null,
          "typeDisplayName": null,
          "isValid": true,
          "isEnabled": true,
          "operations": [
            "view"
          ]
        },
        {
          "typeId": "EF4C64E6BF81419F9743A8A4348A69EB",
          "typeName": "Image",
          "typeDisplayName": "Image",
          "isValid": true,
          "isEnabled": true,
          "operations": [
            "view",
            "update",
            "create",
            "delete"
          ]
        },
        {
          "typeId": "49B267B515C84AD7903C5B9C34EDB09E",
          "typeName": "TypeAAA",
          "typeDisplayName": "TypeAAA",
          "isValid": true,
          "isEnabled": true,
          "operations": [
            "view",
            "update",
            "create",
            "delete"
          ]
        },
        {
          "typeId": "8CB7D974CBB74923BF40A6CA68BED145",
          "typeName": "TypeBBB",
          "typeDisplayName": "TypeBBB",
          "isValid": true,
          "isEnabled": true,
          "operations": []
        },
        {
          "typeId": "B228AE0D8E2E41B8924C5B9FFBCAF039",
          "typeName": "TypeCCC",
          "typeDisplayName": "TypeCCC",
          "isValid": true,
          "isEnabled": false,
          "operations": [
            "view",
            "update",
            "create",
            "delete"
          ]
        }
      ],
      "taxonomyPrivileges": [
        {
          "taxonomyId": null,
          "taxonomyShortName": null,
          "isForSiteManagement": false,
          "categoryId": "",
          "nodes": null,
          "isSiteCategory": false,
          "isValid": true,
          "isEnabled": true,
          "operations": [
            "view"
          ]
        }
      ],
      "links": [
        {
          "href": "http://<hostname>/content/management/api/v1.1/repositories/7F289D0F4FD44C0382A83EFD44A355C0/editorialRoles/76F2903A0C8E48BCA222E68264BE1E05",
          "rel": "self",
          "method": "GET",
          "mediaType": "application/json"
        }
      ]
    }
  ],
  "links": [
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/7F289D0F4FD44C0382A83EFD44A355C0/editorialRoles?limit=10&orderBy=name:asc&q=isUsed eq \"true\"&offset=0",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/7F289D0F4FD44C0382A83EFD44A355C0/editorialRoles?limit=10&orderBy=name:asc&q=isUsed eq \"true\"&offset=0",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/metadata-catalog/repositories/7F289D0F4FD44C0382A83EFD44A355C0/editorialRoles",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/7F289D0F4FD44C0382A83EFD44A355C0/editorialRoles?limit=10&orderBy=name:asc&q=isUsed eq \"true\"&offset=0",
      "rel": "first",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/repositories/7F289D0F4FD44C0382A83EFD44A355C0/editorialRoles?limit=10&orderBy=name:asc&q=isUsed eq \"true\"&offset=0",
      "rel": "last",
      "method": "GET",
      "mediaType": "application/json"
    }
  ]
}
Back to Top