Skip to main content

agent_runner_hooks

Creates, updates, deletes, gets or lists an agent_runner_hooks resource.

Overview

Nameagent_runner_hooks
TypeResource
Idnetlify.agent_runners.agent_runner_hooks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring
site_idstring
agentstring
branchstring
created_atstring (dateTime)
msgstring
promptstring
titlestring
urlstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsite_id, id
listselectsite_id
createinsertsite_id
updatereplacesite_id, id
deletedeletesite_id, id

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
idstring
site_idstring

SELECT examples

OK

SELECT
id,
site_id,
agent,
branch,
created_at,
msg,
prompt,
title,
url
FROM netlify.agent_runners.agent_runner_hooks
WHERE site_id = '{{ site_id }}' -- required
AND id = '{{ id }}' -- required
;

INSERT examples

No description available.

INSERT INTO netlify.agent_runners.agent_runner_hooks (
title,
branch,
prompt,
agent,
site_id
)
SELECT
'{{ title }}',
'{{ branch }}',
'{{ prompt }}',
'{{ agent }}',
'{{ site_id }}'
RETURNING
id,
site_id,
agent,
branch,
created_at,
msg,
prompt,
secret,
title,
url
;

REPLACE examples

No description available.

REPLACE netlify.agent_runners.agent_runner_hooks
SET
title = '{{ title }}',
branch = '{{ branch }}',
prompt = '{{ prompt }}',
agent = '{{ agent }}'
WHERE
site_id = '{{ site_id }}' --required
AND id = '{{ id }}' --required;

DELETE examples

No description available.

DELETE FROM netlify.agent_runners.agent_runner_hooks
WHERE site_id = '{{ site_id }}' --required
AND id = '{{ id }}' --required
;