JavaScript SDK: swarmhit.pendingComments.approve(pendingCommentId, params?)
Approve a draft (optionally replacing its text) so the campaign posts it on its next run. An unknown id is a 400 with code: warning-pending-comment-not-found, and a draft that is no longer pending a 400 with code: warning-pending-comment-decided.
Authorization
bearerAuth An API key created on the Access tokens page.
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/pending-comments/string/approve" \ -H "Content-Type: application/json" \ -d '{}'{ "data": { "id": "string", "campaignId": "string", "campaignLeadId": "string", "leadId": "string", "stepId": "string", "status": "pending", "postUrl": "string", "postText": "string", "prompt": "string", "comment": "string", "firstName": "string", "lastName": "string", "headline": "string", "profileUrl": "string", "publicIdentifier": "string", "decidedAt": "2019-08-24T14:15:22Z", "postedAt": "2019-08-24T14:15:22Z", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}Change the LinkedIn warm-up settings PATCH
**JavaScript SDK:** [`swarmhit.accounts.warmup.update(params)`](/smart-api/sdk/methods#accounts.warmup) Sets the acting workspace's own settings (the organization's, without the header). Send only the fields to change: the others keep the value in force, so a workspace that follows its organization starts from the organization's values. A workspace's own settings replace its organization's as a whole; send `{"inherit": true}`, alone, to drop them and follow the organization again. `autoStart` decides whether an account starts warming up on its own, once, when it is connected for the first time: `never`, `new` (when it looks new, by `newAccount`) or `all`. Turning it on never slows accounts that are already connected; start or stop one by hand with PATCH /accounts/{id}/limits. A value out of range is refused, never clamped: 400 with `code: invalid-warmup` and every reason in `details.errors`.
Approve a voice note POST
**JavaScript SDK:** [`swarmhit.pendingVoiceNotes.approve(pendingVoiceNoteId)`](/smart-api/sdk/methods#pendingVoiceNotes) Approve a generated note so the campaign sends it on its next run. The audio is sent as it stands, so to change the wording call `regeneratePendingVoiceNote` first. An unknown id is a 400 with `code: warning-pending-voice-note-not-found`, and a note that is no longer `pending` a 400 with `code: warning-pending-voice-note-decided`.