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

# Create a schedule

> Create a schedule to run a saved crew at set times.

You create a schedule to run a saved crew at set times without starting it yourself. For example, you can run a
crew every weekday morning. NexusOne keeps the result of each run in the **Runs** sub-feature.

## Prerequisites

Before starting this task, ensure you have the following:

* Required roles: `nx1_crew`.
* A previously created crew.

## Create a schedule

> [tab] Web portal
>
> Perform these steps to create a schedule:
>
> 1. Log in to NexusOne.
>
> 2. On the top navigation bar, hover your mouse over **Agents** and then select **Crews**.
>
> 3. Click **Templates**.
>
> 4. For the crew you want to schedule, click the three dots at the end of its row, and then select **Schedule**.
>
> 5. Set any of the following:
>
>    * **Name**: The name of the schedule. The default is the name of the crew.
>
>    * **Run as**: Who the crew runs as. This field appears only if an administrator gave you access to a service
>      identity. Select **Me** to run the crew with your permissions, or select the service identity to run it with
>      that identity's roles.
>
>    * **Common schedules**: Buttons that fill in the cron for you, such as **Weekdays at 08:00**.
>
>    * **Cron**: When the crew runs, as five fields. For example, `0 6 * * *` runs it every day at 06:00.
>
>    * **Time zone**: The time zone for the cron, such as `Europe/London`.
>
>      > [!NOTE]
>      >
>      > The box under the **Cron** and **Time zone** fields lists the next runs, or shows an error if the cron
>      > isn't valid.
>
>    * **Input for every run**: The values every run uses for the crew's variables.
>      This appears only if the crew defines variables.
>
>    * **Enabled**: Whether the schedule runs the crew. It's on by default.
>      Turn it off to stop the crew from running on a schedule until you turn it on.
>
> 6. Click **Create schedule**. NexusOne shows **Schedule created**.

> [tab] REST API
>
> Use the following API endpoints to create a schedule:
>
> * [Preview a cron](https://docs.nx1cloud.com/api-reference/endpoints/crew-schedules/preview-a-cron.md)
> * [Create schedule](https://docs.nx1cloud.com/api-reference/endpoints/crew-schedules/create-schedule.md)

## Additional resources

For a high-level overview of crews and how they're used in NexusOne, refer to
[Crews](https://docs.nx1cloud.com/documentation/agents/overview/crews.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.