task_channels

Set a space up for a goal or a feature

Starts one unattended task in the channel that resolves the metric, writes the context page and, for a goal, creates the tracking canvas and the loops. The task becomes the channel's context generation task.

post/api/projects/{project_id}/task_channels/{id}/setup/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/task_channels/{id}/setup/
  • Auth: one of:
    • HTTP bearer
    • HTTP bearer

Path parameters

idstring required
project_idstring required

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

Request body

kind'goal' | 'feature' required
  • goal - Goal
  • feature - Feature
repositorystring nullable

Repository the loops work in, as 'owner/name'. Defaults to the channel's first repository.

Response

The setup task that started

task_idstring uuid required

Changes

No recorded changes to this operation across all 1 revision of this API.