> ## Documentation Index
> Fetch the complete documentation index at: https://woku.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add a task (draft or managed plan)



## OpenAPI

````yaml /openapi-v1.json post /v1/action-plans/{id}/tasks
openapi: 3.0.0
info:
  title: Woku Client API v1
  description: >-
    Public REST API for programmatic management of woku Voice-of-Customer
    programs: trackers, VoC instruments (NPS, woku, CES, CSAT), action plans,
    support tickets, multi-channel sending and response capture. Requests are
    company-scoped by the API key; never send a company id.
  version: 1.0.0
  contact:
    name: Woku
    url: https://woku.app
    email: team@woku.app
servers:
  - url: https://clientapi.woku.app
    description: Production
security: []
tags: []
paths:
  /v1/action-plans/{id}/tasks:
    post:
      tags:
        - v1 - action-plans
      summary: Add a task (draft or managed plan)
      operationId: V1ActionPlansController_createTask
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
            format: ObjectId
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateActionPlanTaskDto'
      responses:
        '201':
          description: ''
        '409':
          description: Plan is not a draft or managed
      security:
        - bearer: []
components:
  schemas:
    CreateActionPlanTaskDto:
      type: object
      properties:
        text:
          type: string
          maxLength: 160
          description: Task text.
      required:
        - text
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Company secret API key.

````