Read a Channel

get

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

Read a channel.

Request

Path Parameters
Query Parameters
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

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 get a channel details using its ID by submission of a GET request on the REST resource using cURL:

curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/channels/{id}'

Example:

This reads a channel with id: CC3CF44049B94207BE552A345E74319B10F86A56D2F7.

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

Response Body

{
    "id": "CC3CF44049B94207BE552A345E74319B10F86A56D2F7",
    "name": "channelName12",
    "description": "some channel description",
    "createdBy": "marketing.user",
    "createdDate": {
    "value": "2018-11-30T10:21:31.885Z",
    "timezone": "UTC"
    },
    "updatedBy": "marketing.user",
    "updatedDate": {
    "value": "2018-11-30T10:21:31.885Z",
    "timezone": "UTC"
    },
    "channelType": "public",
    "isSiteChannel": false,
    "publishPolicy": "anythingPublished",
    "localizationPolicy": "7B8F6F008D905491E0534DB0F70AEE4C",
    "channelTokens": [
    {
      "name": "defaultToken",
      "name of the token.": "defaultToken",
      "value of the token.": "12b4e75643051cdc830b27d6d3503e44",
      "token": "12b4e75643051cdc830b27d6d3503e44",
      "expirationDate of the token.": {
        "value": "2098-12-28T00:00:00.000Z",
        "timezone": "UTC"
    },
      "expirationDate": {
        "value": "2098-12-28T00:00:00.000Z",
        "timezone": "UTC"
    }
    }
    ],
    "links": [
    {
      "href": "https://host:port/content/management/api/v1.1/channels/CC3CF44049B94207BE552A345E74319B10F86A56D2F7",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://host:port/content/management/api/v1.1/channels/CC3CF44049B94207BE552A345E74319B10F86A56D2F7",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://host:port/content/management/api/v1.1/metadata-catalog/channels/CC3CF44049B94207BE552A345E74319B10F86A56D2F7",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    }
    ]
    }
Back to Top