Update a scheduled job via patch

Changed on

Update an existing scheduled job by ID.

patch/scheduledJobs/{scheduledJobId}

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    OAuth 2
    Implicithttps://login.microsoftonline.com/common/oauth2/authorize
    Scopesuser_impersonation

Path parameters

scheduledJobIdstring required

Unique ID of the scheduled job.

Query parameters

api-versionstring required

The version of the API being called.

Headers

If-Matchstring

Only perform the operation if the entity's etag matches one of the etags provided or * is provided.

Request body

object required

Response

Success

etagstring

ETag used to prevent conflict in scheduled job updates.

idstring

Unique ID of the scheduled job.

displayNamestring

Display name of the scheduled job.

descriptionstring

Detailed description of the scheduled job.

groupstring required

The ID of the device group on which to execute the scheduled job.

organizationsstring[]

List of organizations of the job, only one organization is supported today, multiple organizations will be supported soon.

enabledboolean

Whether the scheduled job is enabled.

completedboolean

Whether the scheduled job has completed.

Changes