Update a Channel

put

/content/management/api/v1.1/channels/{id}

Updates a channel with the given payload. Can also be used to refresh the channel token.

Request

Supported Media Types
Path Parameters
Query Parameters
Header Parameters
Body ()
Updates a channel with the given information in the payload. The fields createdBy, createdDate, updatedBy, updatedDate, channelTokens, isSiteChanneland links will be ignored even if given in the payload. This payload is optional if the endpoint is being used to refresh the channel token.
Root Schema : Channel
Type: object
Channels
Show Source
Nested Schema : channelAccessControls
Type: array
A list of channel access controls, allowed only for a secure regular channel. It currently allows the access control only for secure channels
Show Source
Nested Schema : channelTokens
Type: array
A list of tokens for the channel.
Show Source
Nested Schema : date
Type: object
date
Show Source
Nested Schema : rankingPolicyContentTypes
Type: array
The search ranking policy scope of the channel.
Show Source
Nested Schema : repositories
Type: array
Repositories associated with the channel. It currently exposes only the default repository for a site channel.
Show Source
Nested Schema : channelAccessControls
Type: object
channelAccessControls
Show Source
  • Allowed Values: [ "CLOUD_USERS", "SERVICE_USERS", "SPECIFIC_USERS" ]
    Access Control Type to be granted, possible values are CLOUD_USERS, SERVICE_USERS, SPECIFIC_USERS and defaults to CLOUD_USERS
  • users
    Specific users to which channel access control is provided, allowed only if the access control type is SPECIFC_USERS
Nested Schema : users
Type: array
Specific users to which channel access control is provided, allowed only if the access control type is SPECIFC_USERS
Show Source
Nested Schema : UserId
Type: object
UserId
Show Source
Nested Schema : channelToken
Type: object
channelToken
Show Source
Nested Schema : RepositoryId
Type: object
RepositoryId
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : Channel
Type: object
Channels
Show Source
Nested Schema : channelAccessControls
Type: array
A list of channel access controls, allowed only for a secure regular channel. It currently allows the access control only for secure channels
Show Source
Nested Schema : channelTokens
Type: array
A list of tokens for the channel.
Show Source
Nested Schema : date
Type: object
date
Show Source
Nested Schema : rankingPolicyContentTypes
Type: array
The search ranking policy scope of the channel.
Show Source
Nested Schema : repositories
Type: array
Repositories associated with the channel. It currently exposes only the default repository for a site channel.
Show Source
Nested Schema : channelAccessControls
Type: object
channelAccessControls
Show Source
  • Allowed Values: [ "CLOUD_USERS", "SERVICE_USERS", "SPECIFIC_USERS" ]
    Access Control Type to be granted, possible values are CLOUD_USERS, SERVICE_USERS, SPECIFIC_USERS and defaults to CLOUD_USERS
  • users
    Specific users to which channel access control is provided, allowed only if the access control type is SPECIFC_USERS
Nested Schema : users
Type: array
Specific users to which channel access control is provided, allowed only if the access control type is SPECIFC_USERS
Show Source
Nested Schema : UserId
Type: object
UserId
Show Source
Nested Schema : channelToken
Type: object
channelToken
Show Source
Nested Schema : RepositoryId
Type: object
RepositoryId
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 channel by submitting a PUT request on the REST resource using cURL.

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

Example:

This updates channel with id: CC210646ADFC2D41F70155C01865795543D050035F70, by adding a localization policy and publish policy. Replace payload with your own data.

/content/management/api/v1.1/channels/CC210646ADFC2D41F70155C01865795543D050035F70

Request Body

{
    "id": "CC210646ADFC2D41F70155C01865795543D050035F70",
    "name": "channelName_secure",
    "description": "some channel description",
    "channelType": "secure",
    "publishPolicy": "anythingPublished",
    "localizationPolicy": "7B8F6F008D905491E0534DB0F70AEE4C"
    }
Back to Top