---
search:
  tags:
    - tasks
    - POST
seo:
  description: >-
    What this does: Toggles the active status of a pipeline week. When a…
    Reference for the POST /tasks/pipeline/status endpoint in the Leadtime
    Public API API.
sidebar:
  badge: POST
  label: Activate/deactivate pipeline for a week
title: Activate/deactivate pipeline for a week
type: openapi-operation
---
**What this does:**
Toggles the active status of a pipeline week. When a week is marked as active, the planned tasks are automatically transferred to each team member's personal stack (Kanban board) in the correct order. This is typically done after the weekly pipeline planning meeting when all tasks have been agreed upon.

**How it works:**
- Creates a PipelineMeta record if it doesn't exist for the week (sets ready=true)
- If PipelineMeta already exists, toggles the ready boolean value
- The week is determined from the start date using ISO week numbering
- Dates should be in ISO format (YYYY-MM-DD)

**Status meanings:**
- 🟢 **Active (ready=true)**: Current approved planning, tasks are visible in employee stacks
- 🟠 **Inactive (ready=false)**: Draft for the upcoming week, still being planned

**Required Permission**: Pipeline.canChangeSettings

**Use cases:**
- Mark a week as active after completing weekly planning meetings
- Deactivate a week to make changes to the planning
- Automate the activation process as part of a planning workflow

<Operation source="api-reference" id="pipelinecontroller-activatepipeline" />
