Reject a bounty submission with a specified reason and optional note.
TypeScript
import { Dub } from "dub"; const dub = new Dub({ token: "DUB_API_KEY", }); async function run() { const result = await dub.bounties.rejectSubmission({ bountyId: "<id>", submissionId: "<id>", }); console.log(result); } run();
{ "id": "<string>", "bountyId": "<string>", "partnerId": "<string>", "description": "<string>", "urls": [ "<string>" ], "files": [ { "url": "<string>", "fileName": "<string>", "size": 123 } ], "status": "draft", "performanceCount": 123, "createdAt": "<string>", "completedAt": "<string>", "reviewedAt": "<string>", "rejectionReason": "<string>", "rejectionNote": "<string>" }
Default authentication mechanism
The reason for rejecting the submission.
invalidProof
duplicateSubmission
outOfTimeWindow
didNotMeetCriteria
other
The note for rejecting the submission.
5000
The rejected bounty submission.
Show child attributes
draft
submitted
approved
rejected
Was this page helpful?