v1
Double column
API
CLI
JS Client

Jobs /

Resume job

Resumes the given job. Optionally takes several arguments to override resumed settings.

Required permission

Project > Jobs > General > Update

Path parameters

    • projectId

      string required
      ID of the project
    • jobId

      string required
      ID of the job

Request body

  • {object}
    • suspended

      boolean
      In the case of cron jobs, whether scheduling should be paused.
    • disabledCI

      boolean
      Whether CI should be disabled
    • disabledCD

      boolean
      Whether CD should be disabled

Response body

  • {object}
    Response object.
    • data

      {object} required
      Result data.
    API
    CLI
    JS Client

    POST /v1/projects/{projectId}/jobs/{jobId}/resume

    Example request

    Request body
    curl
    curl --header "Content-Type: application/json" \
      --header "Authorization: Bearer NORTHFLANK_API_TOKEN" \
      --request POST \
      --data '{"suspended":false,"disabledCI":false,"disabledCD":false}' \
      https://api.northflank.com/v1/projects/{projectId}/jobs/{jobId}/resume

    Example response

    200 OK

    The operation was performed successfully.

    JSON

    {
      "data": {}
    }

    Example response

    409 Conflict

    The job could not be resumed as it is not paused.

    © 2024 Northflank Ltd. All rights reserved.