Copy Editorial Role

post

/content/management/api/v1.1/editorialRoles/{roleId}/copy

Copy a custom editorial role.

Request

Supported Media Types
Path Parameters
Query Parameters
Header Parameters
Body ()
bean of the request payload to copy a custom editorial role.
Root Schema : EditorialRoleOperation
Type: object
EditorialRoleOperation
Show Source
Back to Top

Response

Supported Media Types

201 Response

Created.
Body ()
Root 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

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 copy a custom editorial role by submitting a POST request using cURL.

curl -X POST -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' 'https://host:port/content/management/api/v1.1/editorialRoles/{roleId}/copy'

Example

/content/management/api/v1.1/editorialRoles/8788B03F236340A8A2B7ADB825ED11A9/copy

This makes a copy of the custom editorial role with id 8788B03F236340A8A2B7ADB825ED11A9. Request payload should define the name and optionally the description of the new editorial role. Replace payload with your own data.

Request Payload

 {
    "name": "Copied Role",
    "description": "copied role description"
 }

Request Headers

{
   "Content-Type": "application/json",
   "X-Requested-With": "XMLHttpRequest"
}         

Response Body

{
  "id": "1D05655BD82941009F866832F58FD4CE",
  "name": "Copied Role",
  "description": "copied role description",
  "createdBy": "cecuser1",
  "createdDate": {
    "value": "2021-12-14T07:14:21.536Z",
    "timezone": "UTC"
  },
  "updatedBy": "cecuser1",
  "updatedDate": {
    "value": "2021-12-14T07:14:21.536Z",
    "timezone": "UTC"
  },
  "roleName": "manager",
  "contentPrivileges": [
    {
      "typeId": "",
      "typeName": null,
      "typeDisplayName": null,
      "isValid": true,
      "operations": [
        "view"
      ]
    },
    {
      "typeId": "EF4C64E6BF81419F9743A8A4348A69EB",
      "typeName": "Image",
      "typeDisplayName": "Image",
      "isValid": true,
      "operations": [
        "view",
        "update",
        "create"
      ]
    }
  ],
  "taxonomyPrivileges": [
    {
      "taxonomyId": null,
      "taxonomyShortName": null,
      "isForSiteManagement": false,
      "categoryId": "",
      "nodes": null,
      "isSiteCategory": false,
      "isValid": true,
      "operations": [
        "view"
      ]
    }
  ],
  "links": [
    {
      "href": "http://<hostname>/content/management/api/v1.1/editorialRoles/8788B03F236340A8A2B7ADB825ED11A9/copy",
      "rel": "self",
      "method": "POST",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/editorialRoles/8788B03F236340A8A2B7ADB825ED11A9/copy",
      "rel": "canonical",
      "method": "POST",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/metadata-catalog/editorialRoles/8788B03F236340A8A2B7ADB825ED11A9/copy",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/json"
    }
  ]
}
Back to Top