updateWebHooks

put

/ccadmin/v1/webhooks

Update Web Hooks. Update existing WebHooks.

Request

Supported Media Types
Body ()
Root Schema : updateWebHooks_request
Type: object
Show Source
Example:
{
    "webHooks":[
        {
            "headers":null,
            "subEntityTruncationSize":null,
            "urls":null,
            "includeChangesOnly":false,
            "secretKey":null,
            "urlApplicationSuppressionList":[
                {
                    "url":"https://example.com",
                    "applications":[
                        "applicationId1"
                    ]
                }
            ],
            "displayName":"atg.service.webhook.Resources->webHookDisplayName_publishEvent",
            "serverType":"production",
            "name":"publishEvent",
            "id":"production-publishEvent"
        },
        {
            "headers":{
                "header1":"value1"
            },
            "subEntityTruncationSize":null,
            "urls":[
                "https://localhost:8080/submitOrder"
            ],
            "includeChangesOnly":false,
            "urlApplicationSuppressionList":[
                {
                    "url":"https://example.com",
                    "applications":[
                        "applicationId1"
                    ]
                }
            ],
            "displayName":"atg.service.webhook.Resources->webHookDisplayName_submitOrder",
            "serverType":"production",
            "name":"submitOrder",
            "id":"production-submitOrder",
            "basicAuthentication":{
                "admin":"admin123"
            }
        }
    ]
}
Nested Schema : basicAuthentication
Type: object
Map of username and password
Show Source
Nested Schema : headers
Type: object
Map of header names and header values
Show Source
Nested Schema : urlApplicationSuppressionList
Type: array
Array of URL - Applications suppression. Each object contains a URL to be suppressed and an array of application Ids (using /ccadmin/v1/applicationIds endpoint) for which the URL needs to be suppressed when the application calls OCC endpoint to create or update an entity.
Show Source
Nested Schema : urls
Type: array
An array of strings of the target URLs for the WebHook.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : applications
Type: array
Array of strings representing application Ids, events triggered by which should suppress the URL.
Show Source
  • Id of the registered application. Refer to /ccadmin/v1/applicationIds for more details.
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : updateWebHooks_response
Type: object
Show Source
Nested Schema : basicAuthentication
Type: object
Map of username and password
Show Source
Nested Schema : headers
Type: object
Map of header names and header values
Show Source
Nested Schema : urlApplicationSuppressionList
Type: array
Array of URL - Applications suppression. Each object contains a URL to be suppressed and an array of application Ids (using /ccadmin/v1/applicationIds endpoint) for which the URL needs to be suppressed when the application calls OCC endpoint to create or update an entity.
Show Source
Nested Schema : urls
Type: array
An array of strings of the target URLs for the WebHook.
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : applications
Type: array
Array of strings representing application Ids, events triggered by which should suppress the URL.
Show Source
  • Id of the registered application. Refer to /ccadmin/v1/applicationIds for more details.
Example Response (application/json)
[
    {
        "resendDelaySeconds":null,
        "headers":null,
        "includeChangesOnly":false,
        "secretKey":"hVk7Bm+vgoxCY8r6N+1br2nCa8+OslDHJQMsgiqcJbuxeGP9vxjdShO5+3r6klxFTdexEIByNt9gxgvmRW5JNw==",
        "urlApplicationSuppressionList":[
            {
                "url":"https://example.com",
                "applications":[
                    "applicationId1"
                ]
            }
        ],
        "displayName":"atg.service.webhook.Resources->webHookDisplayName_publishEvent",
        "basicAuthentication":null,
        "maxNumberOfResendAttempts":null,
        "subEntityTruncationSize":null,
        "urls":null,
        "serverType":"production",
        "name":"publishEvent",
        "id":"production-publishEvent",
        "applyResendDelayToFirstAttempt":null
    },
    {
        "resendDelaySeconds":null,
        "headers":{
            "header1":"value1"
        },
        "includeChangesOnly":false,
        "secretKey":null,
        "urlApplicationSuppressionList":[
            {
                "url":"https://example.com",
                "applications":[
                    "applicationId1"
                ]
            }
        ],
        "displayName":"atg.service.webhook.Resources->webHookDisplayName_submitOrder",
        "basicAuthentication":{
            "admin":"admin123"
        },
        "maxNumberOfResendAttempts":null,
        "subEntityTruncationSize":null,
        "urls":[
            "https://localhost:8080/submitOrder"
        ],
        "serverType":"production",
        "name":"submitOrder",
        "id":"production-submitOrder",
        "applyResendDelayToFirstAttempt":null
    }
]

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