Skip to main content
POST
/
bounties
/
{bountyId}
/
submissions
/
{submissionId}
/
reject
Python
from dub import Dub


with Dub(
    token="DUB_API_KEY",
) as d_client:

    res = d_client.bounties.reject_submission(request={
        "bounty_id": "<id>",
        "submission_id": "<id>",
    })

    # Handle response
    print(res)
{
  "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
rejectionReason
enum<string>

The reason for rejecting the submission.

Available options:
invalidProof,
duplicateSubmission,
outOfTimeWindow,
didNotMeetCriteria,
other
rejectionNote
string

The note for rejecting the submission.

Maximum string length: 5000

Response

The rejected 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