Skip to main content
POST
/
job-definition
/
count
Get Job Definition Count (POST)
curl --request POST \
  --url http://{host}:{port}/{contextPath}/job-definition/count \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "activityIdIn": [
    "ServiceTask1",
    "ServiceTask2"
  ]
}'
{
  "count": 2
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json

A Job definition query which defines a list of Job definitions

jobDefinitionId
string | null

Filter by job definition id.

activityIdIn
string[] | null

Only include job definitions which belong to one of the passed activity ids.

processDefinitionId
string | null

Only include job definitions which exist for the given process definition id.

processDefinitionKey
string | null

Only include job definitions which exist for the given process definition key.

jobType
string | null

Only include job definitions which exist for the given job type. See the User Guide for more information about job types.

jobConfiguration
string | null

Only include job definitions which exist for the given job configuration. For example: for timer jobs it is the timer configuration.

active
boolean | null

Only include active job definitions. Value may only be true, as false is the default behavior.

suspended
boolean | null

Only include suspended job definitions. Value may only be true, as false is the default behavior.

withOverridingJobPriority
boolean | null

Only include job definitions that have an overriding job priority defined. The only effective value is true. If set to false, this filter is not applied.

tenantIdIn
string[] | null

Only include job definitions which belong to one of the passed tenant ids.

withoutTenantId
boolean | null

Only include job definitions which belong to no tenant. Value may only be true, as false is the default behavior.

includeJobDefinitionsWithoutTenantId
boolean | null

Include job definitions which belong to no tenant. Can be used in combination with tenantIdIn. Value may only be true, as false is the default behavior.

sorting
object[] | null

An array of criteria to sort the result by. Each element of the array is an object that specifies one ordering. The position in the array identifies the rank of an ordering, i.e., whether it is primary, secondary, etc. Sorting has no effect for count endpoints.

Response

Request successful.

count
integer

The number of matching instances.