Skip to main content
Pulumi logo Pulumi logo
  1. Docs
  2. Reference
  3. REST API Docs
  4. Schema
  5. CreateScheduledAgentAutomationV2Request

CreateScheduledAgentAutomationV2Request

    The common request fields for creating or updating an agent automation. The kind discriminator selects the required configuration.

    Properties

    • name string required
      A human-readable name for the automation.
    • scheduleCron string required
      A standard five-field cron expression in UTC that controls when the automation runs. The minimum interval between consecutive runs must be at least 10 minutes; tighter schedules are rejected.
    • The task configuration that should be used whenever the automation runs. This includes the prompt, attached entities, and task execution settings such as plan mode, approval mode, permission mode, tool execution mode, and enabled integrations. Each automation run creates a fresh task from this definition.
    • ↳ message AgentUserEventMessage optional
      The message content. This is the first event in the conversation and must be a user message, so its discriminator field must be set to “type”: “user_message”.
    • ↳ approvalMode enum optional
      Optional approval mode override for this task. If omitted, org default is used.
      Values: manual, auto, balanced
    • ↳ planMode boolean optional
      Whether to enable plan mode for this task.
    • ↳ permissionMode enum optional
      Controls the permission scope for the task. When omitted, defaults to ‘default’ (the agent uses the creating user’s full permissions).
      Values:
      default — Default
      read-only — ReadOnly
    • ↳ role string optional
      Optional RBAC role the task assumes, identified by role id. When set, the task operates with that role’s permissions in place of the creating user’s own assignments. You may only assume a role that is assigned to you, directly or through a team; a role you do not hold is rejected with a 403. Omitted/null means no assumed role: the task uses the creating user’s full permissions. Orthogonal to permissionMode, which controls the read-only behavior posture independently.
    • ↳ agentDefinitionId string optional
      Optional Custom Agent definition id to run this task as. When set, the task’s role and enabled integrations are taken from the named agent definition instead of from this request, and the task is attributed to that agent. The agent’s instructions and approval mode are not copied at creation: they are read from the definition on every turn, so editing the agent applies to the next turn of every run. A preview capability, gated per organization.
    • ↳ toolExecutionMode enum optional
      Where tools should be executed. Defaults to ‘cloud’ if omitted.
      Values: cloud, cli, worker
    • ↳ enabledIntegrations array[AgentTaskIntegrationRef] optional
      Optional list of integrations to enable for this task. Semantics: omitted/null → inherit all org-enabled integrations; empty list → explicit opt-out (no integration credentials for this task); populated list → whitelist of specific integrations by ID. Modeled as an object array rather than a bare string array so multi-instance support (instance_name, scope, etc.) can be added later without a wire break.
    • ↳ source enum optional
      The origin that triggered this task. Defaults to ‘api’ if omitted.
      Values:
      api — Api
      Task created via the REST API without a more specific origin.
      console — Console
      Task created from the Pulumi Cloud web console.
      cli — Cli
      Task created from the Pulumi CLI.
      slack — Slack
      Task created from the Slack integration.
      schedule — Schedule
      Task created by a scheduled automation.
      github — Github
      Task triggered from a GitHub integration.
      code-review — CodeReview
      Task created by the code review feature. The platform hosting the reviewed change is identified by the task’s vcsProvider field.
    • ↳ cliIntegrations array[CLIIntegrationRef] optional
      Optional filter for CLI integrations to enable for this task. Semantics: omitted/null → enable all CLI integrations connected for the org; empty list → explicit opt-out (no CLI integrations for this task); populated list → whitelist by (catalogId, name) of the configured instances to enable. Entries with missing or unknown catalogId, missing name, or referencing a (catalogId, name) pair that is not connected for the organization are rejected with a 400 response. catalogId matching is case-insensitive.
    • notificationTargets array[NotificationTarget] optional
      The destinations that receive notifications about automation runs.
    • ↳ type string required
    • kind string required

      The infrastructure platform for humans and agents.