Update Editorial Role

put

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

Update a custom editorial role with the given information in the payload. The fields createdBy, createdDate, updatedBy, updatedDate and links will be ignored even if given in the payload.

Request

Supported Media Types
Path Parameters
Query Parameters
Header Parameters
Body ()
bean of the request payload to update a custom editorial role.
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
Back to Top

Response

Supported Media Types

200 Response

OK.
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 update a editorial role by submitting a PUT request using cURL.

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

Example

/content/management/api/v1.1/editorialRoles/D2434092E77D436D96E468C343249B1D
This updates a custom editorial role with id D2434092E77D436D96E468C343249B1D. Replace payload with your own data.

Note:

The any type rule is defined by an empty typeId; and the any category rule is defined by an empty categoryId.

Request Payload

{
  "id": "D2434092E77D436D96E468C343249B1D",
  "name": "New Custom Editor Role",
  "description": "new role description",
  "contentPrivileges": [
    {
      "typeId": "",
      "typeName": "",
      "operations": [
        "view"
      ]
    },
    {
      "typeId": "EF4C64E6BF81419F9743A8A4348A69EB",
      "typeName": "Image",
      "operations": [
        "view",
        "update",
        "create"
      ]
    },
    {
      "typeId": "49B267B515C84AD7903C5B9C34EDB09E",
      "typeName": "TypeAAA",
      "operations": [
        "view",
        "update",
        "create",
        "delete"
      ]
    },
    {
      "typeId": "8CB7D974CBB74923BF40A6CA68BED145",
      "typeName": "TypeBBB",
      "operations": []
    },
    {
      "typeId": "B228AE0D8E2E41B8924C5B9FFBCAF039",
      "typeName": "TypeCCC",
      "operations": [
        "view",
        "update",
        "create"
      ]
    }
  ],
  "taxonomyPrivileges": [
    {
      "taxonomyId": "",
      "categoryId": "",
      "operations": [
        "view"
      ]
    }
  ]
}

Response Body

       {
  "id": "D2434092E77D436D96E468C343249B1D",
  "name": "New Custom Editor Role",
  "description": "new role description",
  "createdBy": "cecuser1",
  "createdDate": {
    "value": "2021-09-13T05:03:55.956Z",
    "timezone": "UTC"
  },
  "updatedBy": "cecuser1",
  "updatedDate": {
    "value": "2021-09-15T18:24:00.736Z",
    "timezone": "UTC"
  },
  "roleName": "manager",
  "contentPrivileges": [
    {
      "typeId": "EF4C64E6BF81419F9743A8A4348A69EB",
      "typeName": "Image",
      "isValid": true,
      "operations": [
        "view",
        "update",
        "create"
      ]
    },
    {
      "typeId": "B228AE0D8E2E41B8924C5B9FFBCAF039",
      "typeName": "TypeCCC",
      "isValid": true,
      "operations": [
        "view",
        "update",
        "create"
      ]
    },
    {
      "typeId": "",
      "typeName": null,
      "isValid": true,
      "operations": [
        "view"
      ]
    },
    {
      "typeId": "49B267B515C84AD7903C5B9C34EDB09E",
      "typeName": "TypeAAA",
      "isValid": true,
      "operations": [
        "view",
        "update",
        "create",
        "delete"
      ]
    },
    {
      "typeId": "8CB7D974CBB74923BF40A6CA68BED145",
      "typeName": "TypeBBB",
      "isValid": true,
      "operations": []
    }
  ],
  "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/D2434092E77D436D96E468C343249B1D",
      "rel": "self",
      "method": "PUT",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/editorialRoles/D2434092E77D436D96E468C343249B1D",
      "rel": "canonical",
      "method": "PUT",
      "mediaType": "application/json"
    },
    {
      "href": "http://<hostname>/content/management/api/v1.1/metadata-catalog/editorialRoles/D2434092E77D436D96E468C343249B1D",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    }
  ]
}      
Back to Top