Get Builds Count

gethttps://app.fossa.com/api/counts/builds

Retrieves a count of builds.

Query parameters

locatorstring

The revision locator to filter builds to

projectIdstring

The project locator to filter builds to

startDatestring <date-time>

The start date to filter builds to

endDatestring <date-time>

The end date to filter builds to

pageSizeinteger <int32>

The number of builds to return

pageinteger <int32>

The page number to return

sortstring

The sort order(s) to apply to the builds. Accepts a comma-separated list of one or more columns. Prefix a column with `-` to sort it in descending order (ascending is the default). Valid columns are: `cliVersionId`, `createdAt`, `id`, `locator`, `ownerId`, `taskId`, `updatedAt`. For example, `-createdAt,id` sorts by `createdAt` descending then `id` ascending.

Responses

200Build counts
number
400Malformed Payload
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

500Server Error
uuidstring

Unique identifier associated with the error

codeinteger

fossa specific error code

messagestring

message associated with this error

namestring

name of the error

httpStatusCodeinteger

http status code number

Try this endpoint

Build a request and run it against app.fossa.com.

Bearer

Stored in this browser for 24 hours. Try It uses a docs proxy for CORS and does not store tokens server-side.

GET https://app.fossa.com/api/counts/builds
curl --request GET \  --url 'https://app.fossa.com/api/counts/builds' \  --header 'accept: application/json' \  --header 'authorization: Bearer YOUR_API_TOKEN'

Real request. Mutating methods can change data.

Click Try It to run a request and see the response here.
Enter a Bearer token before running this request.

Query params

locatorstring

The revision locator to filter builds to

projectIdstring

The project locator to filter builds to

startDatestring

The start date to filter builds to

endDatestring

The end date to filter builds to

pageSizeinteger

The number of builds to return

pageinteger

The page number to return

sortstring

The sort order(s) to apply to the builds. Accepts a comma-separated list of one or more columns. Prefix a column with `-` to sort it in descending order (ascending is the default). Valid columns are: `cliVersionId`, `createdAt`, `id`, `locator`, `ownerId`, `taskId`, `updatedAt`. For example, `-createdAt,id` sorts by `createdAt` descending then `id` ascending.