Skip to main content
POST
Count deployments

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Body schema.

appUuid
string<uuid>

Identifier of the app whose deployments to count.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
workerUuid
string<uuid>

Identifier of the worker whose deployments to count.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
userUuid
string<uuid>

Restrict to deployments created by this user.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
statuses
enum<string>[]

Deployment statuses to include.

Available options:
pending,
building,
success,
error,
cancelled
createdAfter
string

Include deployments created after this ISO timestamp.

createdBefore
string

Include deployments created before this ISO timestamp.

Response

Successful response

count
integer
required

Number of deployments matching the filters.

Required range: 0 <= x <= 9007199254740991