JavaScript SDK: swarmhit.blocklist.settings.update(params)
Takes an owner or admin, as removing entries does (403 code: not-allowed otherwise).
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/blocklist/settings" \ -H "Content-Type: application/json" \ -d '{ "addUnsubscribes": true }'{ "data": { "addUnsubscribes": true }}Remove one blocklist entry DELETE
**JavaScript SDK:** [`swarmhit.blocklist.delete(blocklistId)`](/sdk/methods#blocklist) Leads it already stopped stay stopped. Takes an owner or admin, as removing entries does (403 `code: not-allowed` otherwise).
Log a call POST
**JavaScript SDK:** [`swarmhit.callTasks.complete(callTaskId, params)`](/sdk/methods#callTasks) Log the call: how it went and an optional note. The lead moves on to its next step at once, as when the call is logged in the app. An unknown id is a 400 with `code: warning-call-task-not-found`, and a task that is no longer `pending` a 400 with `code: warning-call-task-decided`. A task whose lead already left the step on its own is closed, and returns a 400 with `code: warning-call-task-stale`. A task decided elsewhere at the same moment (in the app, or by another call) is a 400 with `code: warning-call-task-raced`: the first decision stands.