Refresh channel secret
put
/content/management/api/v1.1/channels/{id}/channelSecret
Refresh secret for given channel
Request
Path Parameters
-
id: string
Refreshes 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 refresh secret for a given 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}/channelSecret'
Example:
Returns the refreshed secret for the channel with id CC793A08B59F65C5FEB7A460B93FC83D8390695C8E93.
/content/management/api/v1.1/channels/CC793A08B59F65C5FEB7A460B93FC83D8390695C8E93/channelSecret
Response Body
{ "channelSecret": "XMGCrjdEy3kX18YsrDo8rV044znZR1x5IafKPKjAWYY" }