> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/sdks-and-cli/scheduler/tasks/save-scheduler-task.md).

# Save Scheduler Task

A **scheduled task** runs a Norbix endpoint on a cron schedule, validated and gated exactly like a live call. This method creates the scheduler task and returns its id.

This method is on the **Hub** surface (`norbix.hub.scheduler`) — call it from admin tooling or IaC.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/sdks-and-cli/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.hub.scheduler.saveSchedulerTask({
  name: 'orders-summary',
  cron: '0 8 * * 1',
  isEnabled: true,
  stopOnError: true,
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Hub;

using var client = new NorbixClient();

var result = await client.Scheduler.SaveSchedulerTaskAsync(new SaveSchedulerTaskRequest
{
    Name = "orders-summary",
    Cron = "0 8 * * 1",
    IsEnabled = true,
    StopOnError = true,
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixHub

norbix = NorbixHub()

result = norbix.scheduler.save_scheduler_task(
    name="orders-summary",
    cron="0 8 * * 1",
    isEnabled=True,
    stopOnError=True,
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.Hub.Scheduler.SaveSchedulerTask(ctx, map[string]any{
	"name": "orders-summary",
	"cron": "0 8 * * 1",
	"isEnabled": true,
	"stopOnError": true,
}, &result)
```

{% endtab %}

{% tab title="Dart / Flutter" %}

```dart
import 'package:norbix/norbix_hub.dart';

final hub = NorbixHub();

final result = await hub.scheduler.saveSchedulerTask(body: {
  'name': 'orders-summary',
  'cron': '0 8 * * 1',
  'isEnabled': true,
  'stopOnError': true,
});
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixSwift

let client = Norbix()

let result = try await client.hub.scheduler.saveSchedulerTask([
    "name": "orders-summary",
    "cron": "0 8 * * 1",
    "isEnabled": true,
    "stopOnError": true,
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import dev.norbix.sdk.hub.NorbixHub

val hub = NorbixHub()

val result = hub.scheduler.saveSchedulerTask(mapOf(
    "name" to "orders-summary",
    "cron" to "0 8 * * 1",
    "isEnabled" to true,
    "stopOnError" to true,
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix hub scheduler task save --name orders-summary --cron '0 8 * * 1' --isEnabled true --stopOnError true
```

{% endtab %}
{% endtabs %}

## In the dashboard

Manage this visually in Norbix Cloud — see [Scheduler → Tasks](/norbix-cloud/scheduler.md).

## API reference

Full request and response for this endpoint: [Save Scheduler Task](/api-reference/scheduler/tasks/save-scheduler-task.md).
