Generate a channel secret
post
/content/management/api/v1.1/channels/{id}/channelSecret
Generate a secret for given channel
Request
Path Parameters
-
id: string
Generates a secret for the given channelId
Header Parameters
-
X-Requested-With: string
A custom header to mitigate CSRF attacks.Allowed Values:
[ "XMLHttpRequest" ]
Response
Supported Media Types
- application/json
201 Response
Created.
Root Schema : ChannelSecretService
Type:
object
400 Response
Bad request.
403 Response
Forbidden.
500 Response
Internal server error.
Examples
The following example shows how to create a channel secret by submitting a POST request on the REST resource using cURL.
curl -X POST -H 'Content-Type: application/json' -H 'X-Requested-With: XMLHttpRequest' 'https://host:port/content/management/api/v1.1/channels/{id}/channelSecret'
Example:
Returns the generated secret for the channel with id CC793A08B59F65C5FEB7A460B93FC83D8390695C8E93.
/content/management/api/v1.1/channels/CC793A08B59F65C5FEB7A460B93FC83D8390695C8E93/channelSecret
Response Body
{ "channelSecret": "aXzI1EMccX+1roopO8Ns2/eTH4Ade2N3OA8Ybjbl/qs=" }