Approve a bounty submission. Optionally specify a custom reward amount.
TypeScript
import { Dub } from "dub"; const dub = new Dub({ token: "DUB_API_KEY", }); async function run() { const result = await dub.bounties.approveSubmission({ 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 approved bounty submission.
Show child attributes
draft
submitted
approved
rejected
Was this page helpful?