JavaScript SDK: swarmhit.pendingComments.reject(pendingCommentId)
Reject a draft — the lead skips the comment step and continues. 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
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/pending-comments/string/reject"{ "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" }}Re-record a voice note POST
**JavaScript SDK:** [`swarmhit.pendingVoiceNotes.regenerate(pendingVoiceNoteId, params?)`](/smart-api/sdk/methods#pendingVoiceNotes) Re-record the note, optionally rewriting what it says. The script and the audio are always replaced together, so there is no way to edit one without the other. New wording uses the workspace's credits; identical wording replays the cached audio for free. 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`.
Reject a voice note POST
**JavaScript SDK:** [`swarmhit.pendingVoiceNotes.reject(pendingVoiceNoteId)`](/smart-api/sdk/methods#pendingVoiceNotes) Reject a generated note. The lead continues down the "no reply" branch without it. 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`.