functionWebHookOperation

post

/ccadmin/v1/functionWebhooks/{id}

Function Web Hook Operation. Perform an operation on a function WebHook, like reset the secret key of a specific WebHook with the help of provided ID.

Request

Supported Media Types
Path Parameters
  • ID corresponding to the WebHook whose secret key is to be reset.
Body ()
Root Schema : functionWebHookOperation_request
Type: object
Show Source
  • The operation to perform. Valid values are: resetSecretKey
Example:
{
    "op":"resetSecretKey"
}
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : functionWebHookOperation_response
Type: object
Show Source
  • WebHook identifier.
  • The base64 encoded secret key of the WebHook. A secret key is currently shared between WebHooks of the same name (like "calculateShipping"). The secret key will have a non-null value only if the authentication method was previously chosen as secret key.
Example Response (application/json)
{
    "secretKey":"jCFq0IhpO7Qk7Fr5H3tHpMckhroKRhiTcMR15PKywH9B8QoA4lRgDaoSg46mAh+W4z3G2c1dHeVEOgMaMIBjUA==",
    "id":"production-calculateShipping"
}

Default Response

The error response
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top