# Post Endpoint - DisableSyncJobById
Deactivates sync job with the provided id.
# HTTP Request
One of the following requests should be made:
POST /api/syncjobs/deactivate({syncJobId})
POST /api/syncjobs/deactivate/{syncJobId}
# Path parameters
| Name | Description |
|---|---|
| syncJobId | required. ID of sync job which have to be deactivated. |
# Query parameters
| Name | Description |
|---|---|
| repository | optional. Destination repository key. |
# Request headers
| Name | Description |
|---|---|
| Authorization | required. Bearer {token}. See authorization |
| Content-Type | required. application/json |
# Responses
| Code | Description | Type |
|---|---|---|
200 | Sync job is successfully deactivated. | |
400 | Request contains invalid data. | |
401 | If access is not allowed with the given credentials/data. | |
500 | Deactivating sync job failed due to an internal server error. |
# Example
# Request
The following is an example of how to call the endpoint:
POST /api/syncjobs/deactivate(1)?repository=repo1
# Response
The following example shows the response:
Information
The response object is truncated for clarity. Default properties will be returned from the call.
HTTP/1.1 200 OK