Create Deployment task.

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Creates a new Deployment task with the specified configuration.

Endpoints

Request URL

https://{serverurl}/emsapi/osdeployer/tasks

Scope

DesktopCentralCloud.OSDTask.CREATECopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

Request Parameters

- Request Headers

Content-TypestringMandatory
application/deploymentTaskDetails.v1+jsonapplication/deploymentTaskDetails.v1+jsonCopied!
AcceptstringMandatory
application/deploymentTaskCreatedStatus.v1+jsonapplication/deploymentTaskCreatedStatus.v1+jsonCopied!

- Query Parameters

taskTypestringMandatory

Type of deployment task to create. Accepted values: "defaultTask" or "liveTask". Determines which fields in the request body are applicable. Required.

- Request Body

application/deploymentTaskDetails.v1+json
JSON Object

Request body for creating a new deployment task.

Hide Sub-Attributes
taskNamestringMandatory

Display name of the deployment task. Matches uem_fileName regex.

templateIDlongMandatory

Deployment template ID that defines the image and post-deployment actions.

taskDescriptionstringMandatory

Free-form description of the task. Pass an empty string if no description is needed.

authCodestringOptional

One-time authorization code for agent enrolment. Required at the commit step (PUT /tasks/{taskId}), not at creation.

applicableRemoteOfficesarrayOptional

Remote-office IDs the task is allowed to target. If omitted or empty, the task targets all offices.

taskSettingsJSON ObjectOptional

Broadcast type, bandwidth limit, wait time, and schedule details for the task.

Show Sub-Attributes
broadcastTypeintegerMandatory

Broadcast mode: 0 = Unicast, 1 = Multicast. Sending any other value returns INVALID_APPLICATIONS_TYPE.

bandwidthlongMandatory

Maximum bandwidth per target in kbps.

waitTimelongMandatory

Time in minutes to wait for clients to join before starting transmission.

scheduleDetailsJSON ObjectOptional

Schedule for the task start (one-time or recurring).

Show Sub-Attributes
startTimelongOptional

Epoch-millis timestamp at which the task should start.

remoteOfficeIdlongOptional

Primary remote office that schedules and runs the task.

mediaIdlongOptional

ID of the OS Deployer boot media to be used by the task.

resourceIDsarrayOptional

OS Deployer resource IDs to be targeted by the task.

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request POST \
  --url 'https://appdomains/emsapi/osdeployer/tasks?taskType=SOME_STRING_VALUE' \
  --header 'Accept: application/deploymentTaskCreatedStatus.v1+json' \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52' \
  --header 'Content-Type: application/deploymentTaskDetails.v1+json' \
  --data '{"taskDescription":"","taskName":"DeploymentTask6","templateID":1}'

Sample Request Body

Create a deployment task with only the mandatory fields

Copied!
  {
    "taskDescription": "",
    "taskName": "DeploymentTask6",
    "templateID": 1
  }
                
Show full

Response Parameters

- HTTP code 200

Response Body - application/deploymentTaskCreatedStatus.v1+json
JSON Object
Hide Sub-Attributes
isTaskCreatedboolean

True if the task was successfully created.

isTaskCommittedboolean

False immediately after creation. Becomes true once the task is committed via PUT /tasks/{taskId}. Starting the task is a separate subsequent step.

taskIDlong

ID of the newly created deployment task.

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

Task created successfully

Copied!
  {
    "isTaskCommitted": false,
    "isTaskCreated": true,
    "taskID": 200
  }
                
Show full

Duration: 1 minute | Threshold: 50 | Lock period: 5 minutes

Duration - Time window for the threshold.
Threshold - Number of API calls allowed within the specified duration.
Lock Period - Wait time before consecutive API requests.