NylorunDocsBeta
Runtime APIAgentsTriggers

Delete a trigger an agent made or a client put

DELETE
/v1/agents/{agentId}/triggers/{triggerId}

Deletes a trigger one of the Agent's agents made with the triggers tool (origin: agent) or a client put (origin: api), with agent.trigger_deleted on the Agent's events; its runs stay. A trigger its manifest declares is refused (trigger_from_manifest): save a version without it, or pause it.

Authorization

headerAuthorizationBearer <token>

An application key of the Tenant (PUT /v1/tenant/keys/{keyId}), or Studio's key, derived from the admin key. With Nylorun-Subject and Nylorun-Scopes, it acts for that person, narrowed to those scopes. Never accepted from a browser (Origin).

Path Parameters

agentId*string

The Agent id, percent-encoded

triggerId*string

The trigger's id: in the manifest's runtime.triggers, or the one its agent gave it

Header Parameters

Nylorun-Protocol*string

The protocol version, 18

Nylorun-Subject?string

The person an application key acts for

Nylorun-Scopes?string

The subject's space-separated scopes; required with a subject

Response Body

Deleted

application/json
  1. response
id*string
curl -X DELETE "https://example.com/v1/agents/string/triggers/string" \  -H "Nylorun-Protocol: string"
{  "id": "string"}