TryzenAPI
Email tools

Change, enable or disable an inbound rule (the webhook follows)

PATCH
/v1/email-tool-connections/{connectionId}/inbound-rules/{ruleId}

Access: an API key (or an org-wide key naming the workspace) with manage on integrations.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Path Parameters

connectionId*string
Match^[0-9a-f]{24}$
ruleId*string
Match^[0-9a-f]{24}$

Request Body

application/json
  1. body
name?string
Length1 <= length <= 120
enabled?boolean
when?
action?|

Response Body

Default Response

application/json
  1. response
rule*
hook*
Example Request
curl -X PATCH 'https://api.tryzen.co/v1/email-tool-connections/string/inbound-rules/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "rule": {    "id": "string",    "connectionId": "string",    "provider": "instantly",    "name": "string",    "enabled": true,    "when": {      "kinds": [        "reply"      ],      "vendorCampaignIds": [        "string"      ]    },    "action": {      "kind": "add_to_campaign",      "campaignId": "string",      "senderId": "string"    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "hook": {    "status": "off",    "registrations": 0,    "lastError": "string",    "updatedAt": "2019-08-24T14:15:22Z"  }}