Skip to main content
POST
/
bounties
/
{bountyId}
/
submissions
/
{submissionId}
/
approve
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>"
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

bountyId
string
required
submissionId
string
required

Body

application/json
rewardAmount
number | null

Response

The approved bounty submission.

id
string
required
bountyId
string
required
partnerId
string
required
description
string | null
required
urls
string[] | null
required
files
object[] | null
required
status
enum<string>
required
Available options:
draft,
submitted,
approved,
rejected
performanceCount
number | null
required
createdAt
string
required
completedAt
string | null
required
reviewedAt
string | null
required
rejectionReason
string | null
required
rejectionNote
string | null
required