---
title: "Schedules a Script on an Asset"
method: POST
path: "/rmm/public_scripts/{asset_id}/schedule"
tags: ["RMM Script"]
---

# Schedules a Script on an Asset

`POST /rmm/public_scripts/{asset_id}/schedule`

Required permission: Scripts - Execute
Single-Customer Users can only access own assets.

## Request body

- object
  - `next_run` string, date-time
  - `script_id` integer
  - `run_type` 'now' | 'later'
  - `freq` 'once'

## Response `200`

successful with mav script_id and no mav_options

## Other responses

- `404` — script belongs to a different account
- `422` — recurring schedule not allowed

---

[API](https://skmtc.dev/syncromsp/apis/syncro.md) · [All operations](https://skmtc.dev/syncromsp/apis/syncro/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/syncromsp/syncro/revisions/3df3aed287cc/schema)
