updateFunctionWebHooks

put

/ccadmin/v1/functionWebhooks

Update Function Web Hooks. Update existing WebHooks.

Request

Supported Media Types
  • application/json
Body Parameter
Root Schema : updateFunctionWebHooks_request
Nested Schema : basicAuthentication
Type: object
Map of username and password
Nested Schema : headers
Type: object
Map of header names and header values

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateFunctionWebHooks_response
Nested Schema : basicAuthentication
Type: object
Map of username and password
Nested Schema : headers
Type: object
Map of header names and header values
Example application/json

[
    {
        "headers":null,
        "secretKey":null,
        "displayName":"Calculate Shipping - Production",
        "serverType":"production",
        "name":"calculateShipping",
        "id":"production-calculateShipping",
        "url":null
    },
    {
        "headers":{
            "header1":"value1"
        },
        "displayName":"Calculate Shipping - Publishing",
        "serverType":"publishing",
        "name":"calculateShipping",
        "id":"publishing-calculateShipping",
        "basicAuthentication":{
            "admin":"admin123"
        },
        "url":"https://localhost:8080/calculateShipping"
    }
]
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,
    "secretKey": null,
    "displayName": "atg.service.webhook.Resources->webHookDisplayName_publishEvent",
    "serverType": "production",
    "name": "calculateShipping",
    "id": "production-calculateShipping",
    "url": null
  },
  {
    "headers": {"header1": "value1"},
    "displayName": "Calculate Shipping - Publishing",
    "serverType": "publishing",
    "name": "calculateShipping",
    "id": "publishing-calculateShipping",
    "basicAuthentication": {"admin": "admin123"},
    "url": "https://localhost:8080/calculateShipping"
  }
]}

Sample Response Payload returned by endpoint:

[
  {
    "headers": null,
    "secretKey": null,
    "displayName": "Calculate Shipping - Production",
    "serverType": "production",
    "name": "calculateShipping",
    "id": "production-calculateShipping",
    "url": null
  },
  {
    "headers": {"header1": "value1"},
    "displayName": "Calculate Shipping - Publishing",
    "serverType": "publishing",
    "name": "calculateShipping",
    "id": "publishing-calculateShipping",
    "basicAuthentication": {"admin": "admin123"},
    "url": "https://localhost:8080/calculateShipping"
  }
]