# Post Endpoint - CancelOneDriveSyncJob

Cancels the current execution of a sync jobWith this endpoint the execution of OneDrive sync jobs can be canceled. The cancellation will not take effect immediately as the remaining in-flight data is processed.

# HTTP Request

One of the following requests should be made:

POST /api/onedrive/syncjob/cancel

# Query parameters

Name Description
syncJobId required. ID of sync job which should be canceled.

# Request headers

Name Description
Authorization required. Bearer {token}. See authorization
Content-Type required. application/json

# Responses

Code Description Type
202 The execution of the sync job has been canceled
400 The format of the sync job id is invalid
404 The sync job does not exist or is currently not running
500 An error occurred while canceling a sync job.
Last updated: May 15, 2025 at 6:02 PM