getFunctionWebHooks

get

/ccadmin/v1/functionWebhooks

Get Function Web Hooks. Gets an array of function WebHooks. Response can be narrowed by a "serverType parameter". Each element of the returned array follows the format of that returned by getWebHook.

Request

Supported Media Types
  • application/json
Query Parameters
includeSecretKeys
Type: boolean
Whether to include the secret key.
serverType
Type: string
Only return WebHooks of the specified filter type.

Response

Supported Media Types
  • application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : getFunctionWebHooks_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":{
            "header1":"value1"
        },
        "secretKey":null,
        "displayName":"atg.service.webhook.Resources->webHookDisplayName_calculateShipping",
        "serverType":"production",
        "name":"calculateShipping",
        "id":"production-calculateShipping",
        "basicAuthentication":{
            "admin":"admin"
        },
        "url":null
    },
    {
        "headers":null,
        "secretKey":null,
        "displayName":"Calculate Shipping - Publishing",
        "serverType":"publishing",
        "name":"calculateShipping",
        "id":"publishing-calculateShipping",
        "basicAuthentication":null,
        "url":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 Response Payload returned by endpoint:

[
  {
    "headers": {"header1": "value1"},
    "secretKey": null,
    "displayName": "atg.service.webhook.Resources->webHookDisplayName_calculateShipping",
    "serverType": "production",
    "name": "calculateShipping",
    "id": "production-calculateShipping",
    "basicAuthentication": {"admin": "admin"},
    "url": null
  },
  {
    "headers": null,
    "secretKey": null,
    "displayName": "Calculate Shipping - Publishing",
    "serverType": "publishing",
    "name": "calculateShipping",
    "id": "publishing-calculateShipping",
    "basicAuthentication": null,
    "url": null
  }
]