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
- application/json
Path Parameters
- id
-
Type:
stringRequired:trueID corresponding to the WebHook whose secret key is to be reset.
Body Parameter
Root Schema : functionWebHookOperation_request
{
"op":"resetSecretKey"
}
- op
-
Type:
stringRequired:trueThe operation to perform. Valid values are: resetSecretKey
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : functionWebHookOperation_response
- id
-
Type:
stringWebHook identifier. - secretKey
-
Type:
stringThe 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 application/json
{
"secretKey":"jCFq0IhpO7Qk7Fr5H3tHpMckhroKRhiTcMR15PKywH9B8QoA4lRgDaoSg46mAh+W4z3G2c1dHeVEOgMaMIBjUA==",
"id":"production-calculateShipping"
}
Default Response
The error response
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{"op": "resetSecretKey"}
Sample Response Payload returned by endpoint:
{
"secretKey": "jCFq0IhpO7Qk7Fr5H3tHpMckhroKRhiTcMR15PKywH9B8QoA4lRgDaoSg46mAh+W4z3G2c1dHeVEOgMaMIBjUA==",
"id": "production-calculateShipping"
}