provider task-automationstask_automations POST /api/projects/{project_id}/task_automations/
@utdk/posthog /api/projects/{project_id}/task_automations/
task_automations_create
API for managing scheduled task automations.
project_id path required
Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
string

Try it

Authentication
Configure credentials for PostHog API
taskAutomationsCreate
POST/api/projects/{project_id}/task_automations/
API for managing scheduled task automations.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required

Display name (stored as the backing task's title).

required

The automation prompt (stored as the backing task's description).

required

Target repository in the format organization/repository.

GitHub integration to run as. Defaults to the team's GitHub integration when omitted.

required

Standard 5-field cron expression (minute hour day month weekday).

IANA timezone the schedule runs in.

Optional template identifier this automation was created from.

Whether the schedule is active; paused when false.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.taskAutomationsCreate({
  "timezone": "UTC",
  "enabled": true
})