Skip to main content
POST
/
bounties
/
{bountyId}
/
submissions
/
{submissionId}
/
approve
Ruby
require 'dub'

Models = ::OpenApiSDK::Models
s = ::OpenApiSDK::Dub.new(
      security: Models::Shared::Security.new(
        token: 'DUB_API_KEY',
      ),
    )

req = Models::Operations::ApproveBountySubmissionRequest.new(
  bounty_id: '<id>',
  submission_id: '<id>',
)

res = s.bounties.approve_submission(request: req)

unless res.nil?
  # handle response
end
{
  "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

The ID of the bounty

submissionId
string
required

The ID of the bounty submission

Body

application/json
rewardAmount
number | null

The reward amount for the performance-based bounty. Applicable if the bounty reward amount is not set.

Response

The approved bounty submission.

id
string
required

The ID of the bounty submission

bountyId
string
required

The ID of the bounty

partnerId
string
required

The ID of the partner

description
string | null
required

The description of the submission

urls
string[] | null
required

The URLs submitted for the submission

files
object[] | null
required

The files uploaded for the submission

status
enum<string>
required

The status of the submission

Available options:
draft,
submitted,
approved,
rejected
performanceCount
number | null
required

The performance count of the submission

createdAt
string
required

The date and time the submission was created

completedAt
string | null
required

The date and time the submission was completed

reviewedAt
string | null
required

The date and time the submission was reviewed

rejectionReason
string | null
required

The reason for rejecting the submission

rejectionNote
string | null
required

The note for rejecting the submission