Use this API to retrieve and change the application limits of a subscription plan.

The available plans depend on the GitLab edition. In the Community Edition, only the default plan exists. The Enterprise Edition has additional plans.

These endpoints require administrator access to the instance.

Get current plan limits

GET /api/v4/application/plan_limits

List the current limits of a plan on the GitLab instance.

Parameters

NameTypeDescription
plan_name
Query
StringName of the plan to get the limits from
Allowed values: default
Default: default

Responses

CodeDescriptionSchema
200OKAPIEntitiesPlanLimit
400Bad Request—
401Unauthorized—
403Forbidden—

Change plan limits

PUT /api/v4/application/plan_limits

Modify the limits of a plan on the GitLab instance.

Request body (application/json)

PropertyTypeDescription
cargo_max_file_sizeIntegerMaximum Cargo package file size in bytes. Introduced in GitLab 19.3
ci_active_jobsIntegerTotal number of jobs in currently active pipelines
ci_instance_level_variablesIntegerMaximum number of instance-level CI/CD variables that can be defined
ci_job_variables_countIntegerMaximum number of job variables in a single job
ci_needs_size_limitIntegerMaximum number of needs dependencies that a job can have
ci_pipeline_schedulesIntegerMaximum number of pipeline schedules
ci_pipeline_sizeIntegerMaximum number of jobs in a single pipeline
ci_pipeline_variables_countIntegerMaximum number of pipeline variables in a single pipeline
ci_project_subscriptionsIntegerMaximum number of pipeline subscriptions to and from a project
ci_registered_group_runnersIntegerMaximum number of runners created or active in a group during the past seven days
ci_registered_project_runnersIntegerMaximum number of runners created or active in a project during the past seven days
ci_variable_file_value_sizeIntegerMaximum size of a file type CI/CD variable value in bytes
ci_variable_value_sizeIntegerMaximum size of a CI/CD variable value in bytes
conan_max_file_sizeIntegerMaximum Conan package file size in bytes
dotenv_sizeIntegerMaximum size of a dotenv artifact in bytes. Introduced in GitLab 17.1
dotenv_variablesIntegerMaximum number of variables in a dotenv artifact. Introduced in GitLab 17.1
draft_notes_per_merge_requestIntegerMaximum number of draft notes one user can have on a merge request. Set to 0 for unlimited. Introduced in GitLab 19.6
enforcement_limitIntegerMaximum storage size for root namespace limit enforcement, in MiB
generic_packages_max_file_sizeIntegerMaximum generic package file size in bytes
helm_max_file_sizeIntegerMaximum Helm chart file size in bytes
integration_executionsIntegerMaximum number of integration executions that can be enqueued per minute, per top-level namespace, excluding Datadog. Set to 0 for unlimited
integration_executions_datadogIntegerMaximum number of Datadog integration executions that can be enqueued per minute, per top-level namespace. Set to 0 for unlimited
maven_max_file_sizeIntegerMaximum Maven package file size in bytes
max_pipelines_per_merge_trainIntegerMaximum number of parallel pipelines per merge train. The default is 20 and the minimum is 1. Introduced in GitLab 19.0
notification_limitIntegerMaximum storage size for root namespace limit notifications, in MiB
npm_max_file_sizeIntegerMaximum npm package file size in bytes
nuget_max_file_sizeIntegerMaximum NuGet package file size in bytes
organization_hooksIntegerMaximum number of system hooks per organization, for hooks managed by organization administrators. Set to 0 for unlimited. Introduced in GitLab 19.6
pipeline_hierarchy_sizeIntegerMaximum number of downstream pipelines in a pipeline’s hierarchy tree. The default is 1000. Higher values are not recommended
plan_name
Required
StringName of the plan to update
Allowed values: default
Minimum length: 1
pypi_max_file_sizeIntegerMaximum PyPI package file size in bytes
service_desk_outbound_emails_per_dayIntegerMaximum number of outbound Service Desk emails per day, per top-level namespace. Set to 0 for unlimited. Introduced in GitLab 19.4
service_desk_outbound_emails_per_hourIntegerMaximum number of outbound Service Desk emails per hour, per top-level namespace. Set to 0 for unlimited. Introduced in GitLab 19.4
storage_size_limitIntegerMaximum storage size for the root namespace, in MiB
swift_max_file_sizeIntegerMaximum Swift package file size in bytes. Introduced in GitLab 19.6
terraform_module_max_file_sizeIntegerMaximum Terraform module package file size in bytes
web_hook_callsIntegerMaximum number of times a webhook can be called per minute, per top-level namespace. Set to 0 for unlimited. Introduced in GitLab 18.5
web_hook_calls_lowIntegerMaximum number of times a webhook can be called per minute, per top-level namespace. Set to 0 for unlimited. GitLab.com only
web_hook_calls_midIntegerMaximum number of times a webhook can be called per minute, per top-level namespace. Set to 0 for unlimited. GitLab.com only

Responses

CodeDescriptionSchema
200OKAPIEntitiesPlanLimit
400Bad request—
401Unauthorized—
403Forbidden—

Schemas

Objects returned by the operations above and objects nested in their request bodies.

APIEntitiesPlanLimit

PropertyTypeDescription
cargo_max_file_sizeIntegerExample: 5.36870912e+09
ci_active_jobsIntegerExample: 0
ci_instance_level_variablesIntegerExample: 25
ci_job_variables_countIntegerExample: 1000
ci_needs_size_limitIntegerExample: 50
ci_pipeline_schedulesIntegerExample: 10
ci_pipeline_sizeIntegerExample: 0
ci_pipeline_variables_countIntegerExample: 1200
ci_project_subscriptionsIntegerExample: 2
ci_registered_group_runnersIntegerExample: 1000
ci_registered_project_runnersIntegerExample: 1000
ci_variable_file_value_sizeIntegerExample: 1.048576e+06
ci_variable_value_sizeIntegerExample: 131072
conan_max_file_sizeIntegerExample: 3.221225472e+09
dotenv_sizeIntegerExample: 5120
dotenv_variablesIntegerExample: 20
draft_notes_per_merge_requestIntegerExample: 200
enforcement_limitIntegerExample: 15000
generic_packages_max_file_sizeIntegerExample: 5.36870912e+09
helm_max_file_sizeIntegerExample: 5.24288e+06
integration_executionsIntegerExample: 500
integration_executions_datadogIntegerExample: 3000
limits_historyObjectExample: {"enforcement_limit":[{"timestamp":1686909124,"user_id":1,"username":"x","value":5}],"notification_limit":[{"timestamp":1686909124,"user_id":2,"username":"y","value":7}]}
maven_max_file_sizeIntegerExample: 3.221225472e+09
max_pipelines_per_merge_trainIntegerExample: 20
notification_limitIntegerExample: 15000
npm_max_file_sizeIntegerExample: 5.24288e+08
nuget_max_file_sizeIntegerExample: 5.24288e+08
organization_hooksIntegerExample: 50
pipeline_hierarchy_sizeIntegerExample: 1000
pypi_max_file_sizeIntegerExample: 3.221225472e+09
service_desk_outbound_emails_per_dayIntegerExample: 700
service_desk_outbound_emails_per_hourIntegerExample: 100
storage_size_limitIntegerExample: 15000
swift_max_file_sizeIntegerExample: 1.048576e+08
terraform_module_max_file_sizeIntegerExample: 1.073741824e+09
web_hook_callsIntegerExample: 500
web_hook_calls_lowIntegerExample: 500
web_hook_calls_midIntegerExample: 500