Skip to main content
GET
/
bounties
/
{bountyId}
/
submissions
Ruby
require 'dub'

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

req = Models::Operations::ListBountySubmissionsRequest.new(
  bounty_id: '<id>',
  page_size: 50.0,
)

res = s.bounties.list_submissions(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

Query Parameters

status
enum<string>

The status of the submissions to list.

Available options:
draft,
submitted,
approved,
rejected
groupId
string

The ID of the group to list submissions for.

partnerId
string

The ID of the partner to list submissions for.

sortBy
enum<string>
default:completedAt

The field to sort the submissions by.

Available options:
completedAt,
performanceCount
sortOrder
enum<string>
default:asc

The order to sort the submissions by.

Available options:
asc,
desc
page
number
default:1

The page number for pagination.

Required range: x > 0
Example:

1

pageSize
number
default:100

The number of items per page.

Required range: 0 < x <= 100
Example:

50

Response

The list of bounty submissions.

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