Getting Started
How to
- GETAuthentication
- GETZapier account list
- Stored Vs. Stateless Actions
- Stored actions
- Stateless actions
- Gathering action information
API Reference
- system
- auth
- apps
- actions
- execution
- ai-actions
- utilities
Libraries
- TypeScript (Node.js, Deno)
- React Components
Development Resources
ai-actions
Update AI Action
Update an existing AI Action.
PUT
/
api
/
v2
/
ai-actions
/
{ai_action_id}
/
Copy
Ask AI
curl --request PUT \
--url https://actions.zapier.com/api/v2/ai-actions/{ai_action_id}/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"app": "<string>",
"action": "<string>",
"action_type": "read",
"params": {},
"meta": {
"params": {},
"app_label": "<string>",
"action_label": "<string>",
"authentication_label": "<string>",
"app_needs_auth": true
}
}'
Copy
Ask AI
{
"id": "<string>",
"description": "<string>",
"account_id": 123,
"authentication_id": 123,
"app": "<string>",
"action": "<string>",
"action_type": "read",
"params": {},
"meta": {
"params": {},
"app_label": "<string>",
"action_label": "<string>",
"authentication_label": "<string>",
"app_needs_auth": true
},
"needs": [
{
"key": "<string>",
"type": "int",
"label": "<string>",
"required": true,
"prefill": "<string>",
"searchfill": "<string>",
"capabilities": [
"<string>"
],
"custom_field": true,
"depends_on": [
"<string>"
],
"input_format": [
"<any>"
],
"language": "<string>",
"parent_key": "<string>",
"regex": "<string>",
"alters_custom_fields": true,
"choices": [
{
"key": "<string>",
"label": "<string>",
"sample": "<string>"
}
],
"default": "<string>",
"help_text": "<string>",
"placeholder": "<string>",
"format": "<string>",
"list": true
}
]
}
Authorizations
Path Parameters
ID of the action to update.
Query Parameters
The Zapier account ID to use.
Account IDs available to the user can be listed using the Get Account List endpoint
ID of the authentication to use for the app.
Authentications available to the user can be listed using the List Authentications For App endpoint.
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request PUT \
--url https://actions.zapier.com/api/v2/ai-actions/{ai_action_id}/ \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"app": "<string>",
"action": "<string>",
"action_type": "read",
"params": {},
"meta": {
"params": {},
"app_label": "<string>",
"action_label": "<string>",
"authentication_label": "<string>",
"app_needs_auth": true
}
}'
Copy
Ask AI
{
"id": "<string>",
"description": "<string>",
"account_id": 123,
"authentication_id": 123,
"app": "<string>",
"action": "<string>",
"action_type": "read",
"params": {},
"meta": {
"params": {},
"app_label": "<string>",
"action_label": "<string>",
"authentication_label": "<string>",
"app_needs_auth": true
},
"needs": [
{
"key": "<string>",
"type": "int",
"label": "<string>",
"required": true,
"prefill": "<string>",
"searchfill": "<string>",
"capabilities": [
"<string>"
],
"custom_field": true,
"depends_on": [
"<string>"
],
"input_format": [
"<any>"
],
"language": "<string>",
"parent_key": "<string>",
"regex": "<string>",
"alters_custom_fields": true,
"choices": [
{
"key": "<string>",
"label": "<string>",
"sample": "<string>"
}
],
"default": "<string>",
"help_text": "<string>",
"placeholder": "<string>",
"format": "<string>",
"list": true
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.