ci.settings.set

Set the organization’s default job time limit and no-progress guard

PUT /ci/api/settingsIAM ci:PutOrganizationSettingsChanges state

Applies to jobs a runner takes from now on; a running job keeps the limits it started with. The maximum cannot be changed here: ask support.

Request syntax

PUT /ci/api/settings
{
  "jobTimeoutMinutes": "number",
  "stallMinutes": "number"
}

Request body

  • jobTimeoutMinutesOptional

    number

    A job's time limit in minutes when neither its workflow (`timeout-minutes`) nor its repository sets one, 1 to the organization's maximum (400 above it, naming the maximum); null: GitHub's 360

    Constraints: integer, 1-4320

    May be null.

  • stallMinutesOptional

    number

    The no-progress guard in minutes when the repository sets none: a job that prints no output this long is stopped, with a warning at half. 0 turns it off, at most 1440; null: 30

    Constraints: integer, 0-1440

    May be null.

Response

200 with the settings as get shows them. 400 when jobTimeoutMinutes is above the organization’s maximum; the message names it.

A JSON response is wrapped as { "success": true, "data": … }; the CLI prints the whole body with --json.

Fields of data

  • jobTimeoutMinutesAlways

    number, may be null

    Default job time limit in minutes; null: 360, as on GitHub
  • stallMinutesAlways

    number, may be null

    No-progress guard in minutes (0: off); null: 30
  • maxJobTimeoutMinutesAlways

    number, may be null

    The maximum set for this organization by support; null: the plan’s
  • effectiveMaxJobTimeoutMinutesAlways

    number

    The longest a job of this organization may run, in minutes
  • maxSourceAlways

    one of operator, plan

    Where that maximum comes from
  • quotaTierAlways

    one of trial, standard

    The organization’s plan
  • defaultsAlways

    object

    What applies when the organization sets nothing
  • defaults.​jobTimeoutMinutesAlways

    number

    360
  • defaults.​stallMinutesAlways

    number

    30
  • updatedAtAlways

    string, may be null

    When the settings last changed (ISO 8601)

Checked against the handlers: every route test validates their answers against this schema.

Errors

  • 400The request does not pass the schema above. The body is { "error": …, "issues": […] }, one issue per field.
  • 401No credentials, or an access key that is unknown, revoked or expired.
  • 403The caller's policies do not allow ci:PutOrganizationSettings on this resource. The body names the action and the resource, and the refusal is recorded in the audit log.
  • 404The resource does not exist in your organization.

Examples

The required parameters only, with example values. Replace id and the other placeholders with your own.

dcloud ci settings set

Generated from the API description, the same one the API checks requests against and the CLI is built from. MCP tool: dcloud_ci_settings_set.