> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Scheduled Task

Create a new direct-support scheduled task for a specific device.

The task will be executed immediately against a single device.

<Note>
  External Documentation

  To learn more, visit the [N-able N-Central documentation](https://developer.n-able.com/n-central/reference/createremoteexecutiontaskdirect).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter           | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Credential Password | The password for the credentials.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | Credential Type     | The type of the credentials for a remote execution task.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
  | Credential Username | The username for the credentials.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
  | Customer ID         | The ID of the customer to attach the task to. Can be obtained by using the `ListCustomers` action.                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | Device ID           | The ID of the device to attach the task to. Can be obtained by using the `ListDevices` action.                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | Item ID             | The ID of the remote execution item.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | Name                | The unique name of the task.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
  | Parameters          | An array of credential parameters setting objects for the task.<br /><br />**For Example**:<br /><pre><code>\[<br />    \{<br />      "name": "Test Task", #Required<br />      "value": "killprocess.vbs /process:33022", #Required<br />      "type": "string", #Required<br />      "description": "A description." #Optional<br />    }<br />]</code></pre>For more information about the `Parameters` field, refer to [N-Central API Reference](https://developer.n-able.com/n-central/reference/createremoteexecutiontaskdirect). |
  | Task Type           | The type of the task.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
</div>

## Example Output

```json theme={"dark"}
{
	"data": {
		"taskId": 1985975
	},
	"_links": {
		"task": "/api/scheduled-tasks/{1985975}"
	}
}
```

## Workflow Library Example

[Create Scheduled Task with N Able N Central and Send Results Via Email](https://library.blinkops.com/workflows/create-scheduled-task-with-n-able-n-central-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-scheduled-task-with-n-able-n-central-and-send-results-via-email/canvas" />
</div>
