Skip to main content
PATCH
Requires agents:update. Replaces which actions of the account the agent may use. Send the full list, or "default" for the app’s defaults. Actions you keep keep their binding; actions you drop leave every step. Saved and published by the same rule as adding one.
Fewer actions keep the agent focused: an availability-only agent needs only find free time and list events. The answer is 200 with the same shape as adding one: integration, skipped_actions (with "default", the defaults the app cannot offer, each with why), draft_version, live, and settings_updated_at when live is true. With "default" while an app outside the curated list is still having its action list read the first time, the answer is 503 WORKFLOW_TOOL_CONTROL_UNAVAILABLE with Retry-After and nothing is saved. Each item of actions may also be {"action": slug, "inputs": {...}}, as when adding one. An action you keep keeps the sources its inputs have, except the ones you send.

Change only how inputs are filled

Send inputs instead of actions, keyed by action slug. null puts an input back to the catalogue’s default. Let the agent choose between two calendars by name:
For a webhook or call transfer on every step (tg_…), key inputs by its binding_id: {"inputs": {"t_5c1e9a20": {"note": {"kind": "literal", "value": "From the voice agent"}}}}. When a calendar is fixed on an action whose tool was built before it could take one, the tool is rebuilt first (a new revision of the same tool); bindable on the list says which those are. You do not have to do anything about it. Refusals: 404 INTEGRATION_NOT_FOUND, 409 WORKFLOW_CONFLICT, 422 INPUT_SOURCE_INVALID (each bad source named by path), 422 INTEGRATION_ACTION_UNKNOWN, 422 INTEGRATION_ACTION_UNAVAILABLE, 422 INTEGRATION_LIMIT, 422 TOOL_CONNECTION_NOT_READY.

Authorizations

Authorization
string
header
required

Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).

Path Parameters

id
string<uuid>
required
integration_id
string
required
Example:

"i_0b8f4c2e"

Body

application/json

Send actions or inputs, not both.

actions
Allowed value: "default"
inputs
object

Only how inputs are filled: {"": {"": source or null}}, or for a webhook or transfer {"<binding_id>": {...}}.

publish
boolean
default:true
expected_version
integer
Required range: x >= 1

Response

The integration (or webhook or transfer) as it is now.

integration
object
required

A connected account given to the whole agent.

draft_version
integer
required
live
boolean
required

The change is on the agent's calls now.

not_live_reason
enum<string>
Available options:
draft_has_other_changes,
agent_not_published,
publish_not_requested,
publish_refused,
publish_unavailable,
inputs_missing
issues
object[]

With publish_refused: what the compiler refused, as POST /agents/{id}/workflow/publish names it. With inputs_missing: each required input still without a source (missing_input_source, path /actions//inputs/), with the PATCH that sets it.

skipped_actions
object[]

Default actions the app cannot offer to a voice agent, left out of the integration, each with why. Empty when every default was given. An action named in actions is never skipped: it is refused (422 INTEGRATION_ACTION_UNAVAILABLE).

settings_updated_at
string<date-time>

Present when live is true: publishing moved the agent's settings token, as POST /agents/{id}/workflow/publish answers it. Send it as expected_updated_at on your next PATCH /agents/{id}.