Skip to main content

webhooks

Creates, updates, deletes, gets or lists a webhooks resource.

Overview

Namewebhooks
TypeResource
Idgoogle.dialogflow.webhooks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestring
disabledboolean
displayNamestring
genericWebServiceobject (id: GoogleCloudDialogflowCxV3WebhookGenericWebService)
serviceDirectoryobject (id: GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig)
timeoutstring (google-duration)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_agents_webhooks_getselectprojectsId, locationsId, agentsId, webhooksId
projects_locations_agents_webhooks_listselectprojectsId, locationsId, agentsIdpageToken, pageSize
projects_locations_agents_webhooks_createinsertprojectsId, locationsId, agentsId
projects_locations_agents_webhooks_patchupdateprojectsId, locationsId, agentsId, webhooksIdupdateMask
projects_locations_agents_webhooks_deletedeleteprojectsId, locationsId, agentsId, webhooksIdforce

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
agentsIdstring
locationsIdstring
projectsIdstring
webhooksIdstring
forceboolean
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Successful response

SELECT
name,
disabled,
displayName,
genericWebService,
serviceDirectory,
timeout
FROM google.dialogflow.webhooks
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND agentsId = '{{ agentsId }}' -- required
AND webhooksId = '{{ webhooksId }}' -- required
;

INSERT examples

No description available.

INSERT INTO google.dialogflow.webhooks (
data__name,
data__genericWebService,
data__displayName,
data__timeout,
data__disabled,
data__serviceDirectory,
projectsId,
locationsId,
agentsId
)
SELECT
'{{ name }}',
'{{ genericWebService }}',
'{{ displayName }}',
'{{ timeout }}',
{{ disabled }},
'{{ serviceDirectory }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ agentsId }}'
RETURNING
name,
disabled,
displayName,
genericWebService,
serviceDirectory,
timeout
;

UPDATE examples

No description available.

UPDATE google.dialogflow.webhooks
SET
data__name = '{{ name }}',
data__genericWebService = '{{ genericWebService }}',
data__displayName = '{{ displayName }}',
data__timeout = '{{ timeout }}',
data__disabled = {{ disabled }},
data__serviceDirectory = '{{ serviceDirectory }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND webhooksId = '{{ webhooksId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
disabled,
displayName,
genericWebService,
serviceDirectory,
timeout;

DELETE examples

No description available.

DELETE FROM google.dialogflow.webhooks
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND agentsId = '{{ agentsId }}' --required
AND webhooksId = '{{ webhooksId }}' --required
AND force = '{{ force }}'
;