updateFunctionWebHook

put

/ccadmin/v1/functionWebhooks/{id}

Update Function Web Hook. Update a single existing function WebHook based on given ID and request parameters.

Request

Supported Media Types
  • application/json
Path Parameters
id
Type: string
Required: true
ID corresponding to the WebHook which is to be updated.
Body Parameter
Root Schema : updateFunctionWebHook_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 : updateFunctionWebHook_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"
    },
    "displayName":"Calculate Shipping - Production",
    "serverType":"production",
    "name":"calculateShipping",
    "id":"production-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:

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

Sample Response Payload returned by endpoint:

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