---
sidebar:
  hidden: true
title: roboto.domain.actions.scheduled_trigger_operations
---
## Module Contents

### CreateScheduledTriggerRequest

```python
class roboto.domain.actions.scheduled_trigger_operations.CreateScheduledTriggerRequest(
    /,
    **data: Any,
)
```

`from roboto.domain.actions import CreateScheduledTriggerRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/scheduled_trigger_operations.py#L24-L75)

Bases: `pydantic.BaseModel`

Request body for [`create()`](/docs/reference/python-sdk/roboto/domain/actions/scheduled_trigger#roboto.domain.actions.scheduled_trigger.ScheduledTrigger.create).

Building it raises `pydantic.ValidationError` when:

- `name` is empty, is longer than 256 characters, or has a character other than a letter, digit, underscore, or hyphen.
- `action_name` has no letter, digit, underscore, or hyphen.
- `timeout` is negative.

**Parameters**

- **data** (`Any`)

**Attributes**

- **CreateScheduledTriggerRequest.action_name** (`str`) = `None`: Name of the action to invoke, unique within the organization that owns it.

  The trigger invokes the action's latest version.

- **CreateScheduledTriggerRequest.action_owner_id** (`str | None`) = `None`: ID of the organization that owns the action. `None` uses the organization the trigger is created in.

- **CreateScheduledTriggerRequest.compute_requirement_overrides** (`roboto.domain.actions.action_record.ComputeRequirements | None`) = `None`: Overrides of the action's compute requirements for each invocation. `None` uses the action's own.

- **CreateScheduledTriggerRequest.container_parameter_overrides** (`roboto.domain.actions.action_record.ContainerParameters | None`) = `None`: Overrides of the action's container parameters for each invocation. `None` uses the action's own.

- **CreateScheduledTriggerRequest.enabled** (`bool`): Whether the trigger invokes the action on its schedule once it is created.

- **CreateScheduledTriggerRequest.invocation_input** (`roboto.domain.actions.invocation_record.InvocationInput | None`) = `None`: Query that selects each invocation's input data when the invocation runs. `None` selects none.

- **CreateScheduledTriggerRequest.invocation_upload_destination** (`roboto.domain.actions.invocation_record.InvocationUploadDestination | None`) = `None`: Where each invocation uploads its output files. `None` sets none.

- **CreateScheduledTriggerRequest.name** (`str`) = `None`: Human-readable name of the trigger, unique within its organization.

  At most 256 characters, of letters, digits, underscores, and hyphens.

- **CreateScheduledTriggerRequest.parameter_values** (`dict[str, Any] | None`) = `None`: Values of the action's parameters, keyed by parameter name. `None` passes none.

- **CreateScheduledTriggerRequest.schedule** (`str`): Five-field cron expression, evaluated in UTC, that sets when the trigger invokes the action.

  For example, `"0 * * * *"` invokes it every hour on the hour.

- **CreateScheduledTriggerRequest.timeout** (`Annotated[int, pydantic.Field(ge=0)] | None`) = `None`: Maximum run time of each invocation, in minutes. `None` uses the action's own.

### UpdateScheduledTriggerRequest

```python
class roboto.domain.actions.scheduled_trigger_operations.UpdateScheduledTriggerRequest(
    /,
    **data: Any,
)
```

`from roboto.domain.actions import UpdateScheduledTriggerRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/actions/scheduled_trigger_operations.py#L78-L126)

Bases: `pydantic.BaseModel`

Request body for [`update()`](/docs/reference/python-sdk/roboto/domain/actions/scheduled_trigger#roboto.domain.actions.scheduled_trigger.ScheduledTrigger.update).

Each field left unset (`NotSet`) leaves that property of the trigger unchanged.

Building the request raises `pydantic.ValidationError` when `action_name` has no letter, digit, underscore, or hyphen, or when `timeout` is negative.

**Parameters**

- **data** (`Any`)

**Attributes**

- **UpdateScheduledTriggerRequest.action_name** (`Annotated[str, pydantic.Field(pattern='[\\w\\-]+')] | roboto.sentinels.NotSetType`): Name of the action to invoke. The action's owner stays the same unless `action_owner_id` is also set.

- **UpdateScheduledTriggerRequest.action_owner_id** (`str | roboto.sentinels.NotSetType`): ID of the organization that owns the action.

- **UpdateScheduledTriggerRequest.compute_requirement_overrides** (`roboto.domain.actions.action_record.ComputeRequirements | None | roboto.sentinels.NotSetType`): Overrides of the action's compute requirements for each invocation.

  `None` clears the overrides, so invocations use the action's own.

- **UpdateScheduledTriggerRequest.container_parameter_overrides** (`roboto.domain.actions.action_record.ContainerParameters | None | roboto.sentinels.NotSetType`): Overrides of the action's container parameters for each invocation.

  `None` clears the overrides, so invocations use the action's own.

- **UpdateScheduledTriggerRequest.enabled** (`bool | roboto.sentinels.NotSetType`): Whether the trigger invokes the action on its schedule.

- **UpdateScheduledTriggerRequest.invocation_input** (`roboto.domain.actions.invocation_record.InvocationInput | None | roboto.sentinels.NotSetType`): Query that selects each invocation's input data when the invocation runs. `None` clears it.

- **UpdateScheduledTriggerRequest.invocation_upload_destination** (`roboto.domain.actions.invocation_record.InvocationUploadDestination | None | roboto.sentinels.NotSetType`): Where each invocation uploads its output files. `None` clears it.

- **UpdateScheduledTriggerRequest.model_config**: Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

- **UpdateScheduledTriggerRequest.parameter_values** (`dict[str, Any] | None | roboto.sentinels.NotSetType`): Values of the action's parameters, keyed by parameter name. `None` clears them.

- **UpdateScheduledTriggerRequest.schedule** (`str | roboto.sentinels.NotSetType`): Five-field cron expression, evaluated in UTC, that sets when the trigger invokes the action.

- **UpdateScheduledTriggerRequest.timeout** (`Annotated[int, pydantic.Field(ge=0)] | None | roboto.sentinels.NotSetType`): Maximum run time of each invocation, in minutes.

  `None` clears the override, so invocations use the action's own.
