---
title: "Update a Scheduled Job"
method: PATCH
path: "/api/v2/gsuites/{gsuite_id}/import/schedules/{scheduledJobId}"
tags: ["G Suite"]
---

# Update a Scheduled Job

`PATCH /api/v2/gsuites/{gsuite_id}/import/schedules/{scheduledJobId}`

## Request

- Base URL: `https://console.jumpcloud.com`
- URL: `https://console.jumpcloud.com/api/v2/gsuites/{gsuite_id}/import/schedules/{scheduledJobId}`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/docs/api/v2/gsuites/:gsuite_id/import/schedules/:scheduledJobId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Endpoint to update the specified scheduled job

## Path parameters

- `gsuite_id` string, byte, required
- `scheduledJobId` string, byte, required

## Query parameters

- `sendEmail` boolean

## Response `200`

OK

- JumpcloudGappsUpdateScheduledResponse
  - `scheduledJob` JumpcloudGappsScheduledImport
    - `scheduledJobId` string, hex: ObjectID of the Scheduled Job
    - `sendEmail` boolean

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error
- `default`: An unexpected error response.

---

[API](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api.md) - [All operations](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jumpcloud/apis/jumpcloud-console-api/revisions/f396d9271b46?raw)
