updateWebHooks

put

/ccadmin/v1/webhooks

Update Web Hooks. Update existing WebHooks.

Request

Supported Media Types
  • application/json
Body Parameter
Root Schema : updateWebHooks_request
Nested Schema : basicAuthentication
Type: object
Map of username and password
Nested Schema : headers
Type: object
Map of header names and header values
Nested Schema : urls
Type: array
An array of strings of the target URLs for the WebHook.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateWebHooks_response
Nested Schema : basicAuthentication
Type: object
Map of username and password
Nested Schema : headers
Type: object
Map of header names and header values
Nested Schema : urls
Type: array
An array of strings of the target URLs for the WebHook.
Example application/json

[
    {
        "maxNumberOfResendAttempts":null,
        "resendDelaySeconds":null,
        "headers":null,
        "urls":null,
        "secretKey":"hVk7Bm+vgoxCY8r6N+1br2nCa8+OslDHJQMsgiqcJbuxeGP9vxjdShO5+3r6klxFTdexEIByNt9gxgvmRW5JNw==",
        "displayName":"atg.service.webhook.Resources->webHookDisplayName_publishEvent",
        "serverType":"production",
        "name":"publishEvent",
        "id":"production-publishEvent",
        "basicAuthentication":null,
        "applyResendDelayToFirstAttempt":null
    },
    {
        "maxNumberOfResendAttempts":null,
        "resendDelaySeconds":null,
        "headers":{
            "header1":"value1"
        },
        "urls":[
            "https://localhost:8080/submitOrder"
        ],
        "secretKey":null,
        "displayName":"atg.service.webhook.Resources->webHookDisplayName_submitOrder",
        "serverType":"production",
        "name":"submitOrder",
        "id":"production-submitOrder",
        "basicAuthentication":{
            "admin":"admin123"
        },
        "applyResendDelayToFirstAttempt":null
    }
]
Default Response
The error response
Body
Root Schema : errorModel
Type: object
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Nested Schema : items
Type: object

Examples

Sample Request:

{"webHooks": [
  {
    "headers": null,
    "urls": null,
    "secretKey": null,
    "displayName": "atg.service.webhook.Resources->webHookDisplayName_publishEvent",
    "serverType": "production",
    "name": "publishEvent",
    "id": "production-publishEvent"
  },
  {
    "headers": {"header1": "value1"},
    "urls": ["https://localhost:8080/submitOrder"],
    "displayName": "atg.service.webhook.Resources->webHookDisplayName_submitOrder",
    "serverType": "production",
    "name": "submitOrder",
    "id": "production-submitOrder",
    "basicAuthentication": {"admin": "admin123"}
  }
]}

Sample Response Payload returned by endpoint:

[
  {
    "maxNumberOfResendAttempts": null,
    "resendDelaySeconds": null,
    "headers": null,
    "urls": null,
    "secretKey": "hVk7Bm+vgoxCY8r6N+1br2nCa8+OslDHJQMsgiqcJbuxeGP9vxjdShO5+3r6klxFTdexEIByNt9gxgvmRW5JNw==",
    "displayName": "atg.service.webhook.Resources->webHookDisplayName_publishEvent",
    "serverType": "production",
    "name": "publishEvent",
    "id": "production-publishEvent",
    "basicAuthentication": null,
    "applyResendDelayToFirstAttempt": null
  },
  {
    "maxNumberOfResendAttempts": null,
    "resendDelaySeconds": null,
    "headers": {"header1": "value1"},
    "urls": ["https://localhost:8080/submitOrder"],
    "secretKey": null,
    "displayName": "atg.service.webhook.Resources->webHookDisplayName_submitOrder",
    "serverType": "production",
    "name": "submitOrder",
    "id": "production-submitOrder",
    "basicAuthentication": {"admin": "admin123"},
    "applyResendDelayToFirstAttempt": null
  }
]