Ttushe / docs
nsk_test_Operational

Edit / pause / resume / cancel an auto-save rule

Change the schedule or amount, or transition status (paused | active | cancelled). A completed/cancelled rule is terminal.

PATCHhttps://api.trytushe.com/v1/accounts/{accountId}/automation-rules/{ruleId}
PATCH/v1/accounts/{accountId}/automation-rules/{ruleId}

Authorization

api-key
x-api-key<token>

In: header

Path Parameters

accountId*string
ruleId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

{  "status": true,  "statusCode": 200,  "message": "Request processed successfully",  "timestamp": "2026-10-03T16:30:00.000Z",  "path": "/v1/accounts",  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "accountId": "3d07c219-0a88-45be-9cfc-91e9d095a1e9",    "trigger": {      "type": "schedule",      "config": {}    },    "action": {      "type": "transfer_from_account",      "config": {}    },    "currency": "NGN",    "status": "active",    "onInsufficientFunds": "skip",    "startAt": "2019-08-24T14:15:22Z",    "endAt": "2019-08-24T14:15:22Z",    "nextRunAt": "2019-08-24T14:15:22Z",    "lastRunAt": "2019-08-24T14:15:22Z",    "runCount": 7  }}