API referenceSenders
PATCH
/senders/{id}

JavaScript SDK: swarmhit.senders.update(senderId, params)

Only the fields given are written (at least one). A list replaces the sender's accounts of that kind ([] unlinks them all), and linkedinAccountId replaces its LinkedIn account (null unlinks it). An account linked here leaves the sender it had.

Authorization

bearerAuth
AuthorizationBearer <token>

An API key created on the Access tokens page.

In: header

Path Parameters

id*string

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/senders/string" \  -H "Content-Type: application/json" \  -d '{    "emailAccountIds": [      "mBx123",      "mBx456",      "mBx789"    ]  }'
{  "data": {    "id": "string",    "firstName": "string",    "lastName": "string",    "name": "string",    "picture": "string",    "managerIds": [      "string"    ],    "linkedinAccountId": "string",    "emailAccountIds": [      "string"    ],    "whatsappAccountIds": [      "string"    ],    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}