Create Webhook Template
Attach custom template to the webhook.
Request
URI
POST
https://vmc.vmware.com//api/notification/{orgId}/webhooks/{webhook}/template
COPY
Path Parameters
string
orgId
Required
Org ID
string
webhook
Required
Webhook identifier
Query Parameters
string
action
Required
Actions
create_new: Creates a new webhook custom template.
restore_default: Revert webhook template to the default.
Possible values are : create_new, restore_default,
Request Body
WebhookTemplate of type(s) application/json
Required
{
"template": "string"
}
string
template
Optional
Payload template for the webhook notification.
Responses
200
OK
Returns WebhookTemplate of type(s) application/json
{
"template": "string"
}
string
template
Optional
Payload template for the webhook notification.
400
Bad Request
Returns ErrorResponse of type(s) application/json
{
"messages": {
"args": [
"string"
],
"default_message": "string",
"id": "string"
},
"type": "string"
}
string
type
Optional
type
401
Unauthorized
Returns WebhookTemplate of type(s) application/json
{
"template": "string"
}
string
template
Optional
Payload template for the webhook notification.
403
Forbidden
Returns WebhookTemplate of type(s) application/json
{
"template": "string"
}
string
template
Optional
Payload template for the webhook notification.
404
Not Found
Returns ErrorResponse of type(s) application/json
{
"messages": {
"args": [
"string"
],
"default_message": "string",
"id": "string"
},
"type": "string"
}
string
type
Optional
type
500
Internal Server Error
Returns ErrorResponse of type(s) application/json
{
"messages": {
"args": [
"string"
],
"default_message": "string",
"id": "string"
},
"type": "string"
}
string
type
Optional
type