updateFunctionWebHooks
put
                    /ccadmin/v1/functionWebhooks
Update Function Web Hooks. Update existing WebHooks.
                Request
Supported Media Types
                - application/json
 
Root Schema : updateFunctionWebHooks_request
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            basicAuthentication(optional): 
            object  basicAuthentication
            
            Map of username and password
 - 
            displayName(optional): 
            integer
            The display name of the WebHook.
 - 
            headers(optional): 
            object  headers
            
            Map of header names and header values
 - 
            id: 
            integer
            WebHook identifier.
 - 
            name(optional): 
            integer
            The simple name of the WebHook.
 - 
            secretKey(optional): 
            string
            The base64 encoded SHA1 secret key of the WebHook. Will be null unless includeSecretKeys query parameter is true. A secret key is currently shared between WebHooks of the same name (like "calculateShipping").
 - 
            secretKeySHA512(optional): 
            string
            The base64 encoded SHA512 secret key of the WebHook. Will be null unless includeSecretKeys query parameter is true. A secret key is currently shared between WebHooks of the same name (like "calculateShipping").
 - 
            serverType(optional): 
            integer
            The server type of the WebHook.
 - 
            subEntityTruncationSize(optional): 
            integer
            Threshold at which some of the sub-entities in Webhook payload, like cart items, return items and addresses get truncated when number of records exceeds configured threshold size (allowed range is 100-50000). For more details on which sub-entities get truncated for a Webhook, refer to individual Webhook payload document
 - 
            synchronousRetries(optional): 
            integer
            The maximum number of times the WebHook should be retried if it returns an error.
 - 
            url(optional): 
            string
            The target URL for the function WebHook.
 - 
            urlApplicationSuppressionList(optional): 
            array  urlApplicationSuppressionList
            
            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.
 
Example:
    
    
{
    "webHooks":[
        {
            "headers":null,
            "subEntityTruncationSize":null,
            "secretKey512":null,
            "synchronousRetries":0,
            "secretKey":null,
            "urlApplicationSuppressionList":[
                {
                    "url":"https://example.com",
                    "applications":[
                        "applicationId1"
                    ]
                }
            ],
            "displayName":"atg.service.webhook.Resources->webHookDisplayName_publishEvent",
            "serverType":"production",
            "name":"calculateShipping",
            "id":"production-calculateShipping",
            "url":null
        },
        {
            "headers":{
                "header1":"value1"
            },
            "subEntityTruncationSize":null,
            "synchronousRetries":5,
            "urlApplicationSuppressionList":[
                {
                    "url":"https://example.com",
                    "applications":[
                        "applicationId1"
                    ]
                }
            ],
            "displayName":"Calculate Shipping - Publishing",
            "serverType":"publishing",
            "name":"calculateShipping",
            "id":"publishing-calculateShipping",
            "basicAuthentication":{
                "admin":"admin123"
            },
            "url":"https://localhost:8080/calculateShipping"
        }
    ]
}Nested Schema : basicAuthentication
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectMap of username and password
    
    
    
    
        Show Source
        - 
            password: 
            string
            The password.
 - 
            username: 
            string
            The user name.
 
Nested Schema : headers
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectMap of header names and header values
    
    
    
    
        Show Source
        - 
            headerName: 
            string
            The header name.
 - 
            headerValue: 
            string
            The header value.
 
Nested Schema : urlApplicationSuppressionList
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayArray 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 : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            applications(optional): 
            array  applications
            
            Array of strings representing application Ids, events triggered by which should suppress the URL.
 - 
            url(optional): 
            string
            The URL to be suppressed.
 
Nested Schema : applications
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayArray of strings representing application Ids, events triggered by which should suppress the URL.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                string
            
            Id of the registered application. Refer to /ccadmin/v1/applicationIds for more details.
 
Response
Supported Media Types
                - application/json
 
200 Response
Following model is returned when operation succeeds.
                
                
                    Root Schema : updateFunctionWebHooks_response
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            basicAuthentication(optional): 
            object  basicAuthentication
            
            Map of username and password
 - 
            displayName(optional): 
            integer
            The display name of the WebHook.
 - 
            headers(optional): 
            object  headers
            
            Map of header names and header values
 - 
            id(optional): 
            integer
            WebHook identifier.
 - 
            name(optional): 
            integer
            The simple name of the WebHook.
 - 
            secretKey(optional): 
            string
            The base64 encoded SHA1 secret key of the WebHook. Will be null unless includeSecretKeys query parameter is true. 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.
 - 
            secretKeySHA512(optional): 
            string
            The base64 encoded SHA512 secret key of the WebHook. Will be null unless includeSecretKeys query parameter is true. 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.
 - 
            serverType(optional): 
            integer
            The server type of the WebHook.
 - 
            subEntityTruncationSize(optional): 
            integer
            Threshold at which some of the sub-entities in Webhook payload, like cart items, return items and addresses get truncated when number of records exceeds configured threshold size (allowed range is 100-50000). For more details on which sub-entities get truncated for a Webhook, refer to individual Webhook payload document
 - 
            supportsSynchronousRetry(optional): 
            boolean
            True if synchronous retries are enabled. Read-only.
 - 
            synchronousRetries(optional): 
            integer
            The maximum number of times the WebHook should be retried if it returns an error.
 - 
            url(optional): 
            string
            The target URL for the function WebHook.
 - 
            urlApplicationSuppressionList(optional): 
            array  urlApplicationSuppressionList
            
            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.
 
Nested Schema : basicAuthentication
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectMap of username and password
    
    
    
    
        Show Source
        - 
            password(optional): 
            string
            The password.
 - 
            username(optional): 
            string
            The user name.
 
Nested Schema : headers
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    objectMap of header names and header values
    
    
    
    
        Show Source
        - 
            headerName(optional): 
            string
            The header name.
 - 
            headerValue(optional): 
            string
            The header value.
 
Nested Schema : urlApplicationSuppressionList
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayArray 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 : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            applications(optional): 
            array  applications
            
            Array of strings representing application Ids, events triggered by which should suppress the URL.
 - 
            url(optional): 
            string
            The URL to be suppressed.
 
Nested Schema : applications
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayArray of strings representing application Ids, events triggered by which should suppress the URL.
    
    
    
    
    
        Show Source
        - 
            Array of: 
                string
            
            Id of the registered application. Refer to /ccadmin/v1/applicationIds for more details.
 
Example Response (application/json)
                    [
    {
        "headers":null,
        "subEntityTruncationSize":null,
        "synchronousRetries":0,
        "secretKey":null,
        "urlApplicationSuppressionList":[
            {
                "url":"https://example.com",
                "applications":[
                    "applicationId1"
                ]
            }
        ],
        "supportsSynchronousRetry":false,
        "displayName":"Calculate Shipping - Production",
        "serverType":"production",
        "name":"calculateShipping",
        "id":"production-calculateShipping",
        "url":null,
        "secretKeySHA512":null
    },
    {
        "headers":{
            "header1":"value1"
        },
        "subEntityTruncationSize":null,
        "synchronousRetries":0,
        "urlApplicationSuppressionList":[
            {
                "url":"https://example.com",
                "applications":[
                    "applicationId1"
                ]
            }
        ],
        "supportsSynchronousRetry":false,
        "displayName":"Calculate Shipping - Publishing",
        "serverType":"publishing",
        "name":"calculateShipping",
        "id":"publishing-calculateShipping",
        "basicAuthentication":{
            "admin":"admin123"
        },
        "url":"https://localhost:8080/calculateShipping"
    }
]
                    
                    Default Response
The error response
                
                
                    Root Schema : errorModel
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
 - 
            errorCode(optional): 
            string
            The numerical code identifying the error
 - 
            errors(optional): 
            array  errors
            
            An optional list of errors if multiple errors were encountered
 - 
            message(optional): 
            string
            The localized message describing the error
 - 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
 - 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
 - 
            status(optional): 
            string
            The HTTP status code
 - 
            type(optional): 
            string
            The URI to the HTTP state code definition
 
Nested Schema : errors
    
      
      Type: 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    arrayAn optional list of errors if multiple errors were encountered
    
    
    
    
    
        Show Source
        
        
    
    
    
    
    
    
Nested Schema : items
    
      Type: 
      
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
        Show Source
        object- 
            devMessage(optional): 
            string
            An optional non-localized message containing technical information for developers
 - 
            errorCode(optional): 
            string
            The numerical code identifying the error
 - 
            message(optional): 
            string
            The localized message describing the error
 - 
            moreInfo(optional): 
            string
            An optional non-localized message with more information
 - 
            o:errorPath(optional): 
            string
            An optional machine readable description of where the error occurred
 - 
            status(optional): 
            string
            The HTTP status code