---
agentTools:
  projectIndex: https://productplan.readme.io/llms.txt
---

# Create Task

Creates a new Task associated with a specified Launch Checklist Section.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "ProductPlan API V2",
    "version": "v2"
  },
  "paths": {
    "/api/v2/launches/{launch_id}/tasks": {
      "post": {
        "summary": "Create Task",
        "tags": [
          "Tasks"
        ],
        "description": "Creates a new Task associated with a specified Launch Checklist Section.",
        "security": [
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "name": "launch_id",
            "in": "path",
            "required": true,
            "description": "Launch ID",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "201": {
            "description": "create successful",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LaunchChecklistItemShow"
                }
              }
            }
          },
          "400": {
            "description": "invalid request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorWithAttrs"
                }
              }
            }
          },
          "401": {
            "description": "authentication failed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "404": {
            "description": "checklist section not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LaunchChecklistItemCreateRequest"
              },
              "examples": {
                "task": {
                  "summary": "Creates a task",
                  "value": {
                    "name": "Product early access",
                    "description": "Product early access",
                    "due_date": "2022-01-01",
                    "status": "to_do",
                    "checklist_section_id": 1,
                    "assigned_user_id": 1
                  }
                }
              }
            }
          },
          "required": true
        }
      }
    }
  },
  "tags": [
    {
      "name": "Tasks"
    }
  ],
  "servers": [
    {
      "url": "https://{defaultHost}",
      "variables": {
        "defaultHost": {
          "default": "app.productplan.com"
        }
      }
    }
  ],
  "components": {
    "schemas": {
      "Error": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "errors"
        ],
        "additionalProperties": false
      },
      "ErrorWithAttrs": {
        "type": "object",
        "properties": {
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "attribute": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        },
        "additionalProperties": false
      },
      "LaunchChecklistItemCreateRequest": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the Task.",
            "example": "Product early access"
          },
          "status": {
            "type": "string",
            "enum": [
              "to_do",
              "in_progress",
              "completed",
              "blocked"
            ],
            "description": "The status of the Task. Defaults to \"to_do\".",
            "example": "to_do",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "The description of the Task.",
            "example": "Product early access",
            "nullable": true
          },
          "due_date": {
            "type": "string",
            "format": "date",
            "description": "The due date of the Task.",
            "nullable": true
          },
          "assigned_user_id": {
            "type": "integer",
            "description": "The ID of the user assigned as the Task owner's. Assignment requires share permissions on the associated Launch.",
            "example": 1,
            "nullable": true
          },
          "checklist_section_id": {
            "type": "integer",
            "description": "The unique ID of the Checklist Section that the Task is assigned to.",
            "example": 1
          }
        },
        "required": [
          "name",
          "owner_id"
        ],
        "additionalProperties": false
      },
      "LaunchChecklistItemShow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The Task's unique database identifier.",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "The name of the Task.",
            "example": "Product early access"
          },
          "status": {
            "type": "string",
            "enum": [
              "to_do",
              "in_progress",
              "completed",
              "blocked"
            ],
            "description": "The status of the Task.",
            "example": "completed"
          },
          "description": {
            "type": "string",
            "description": "The description of the Task.",
            "example": "Product early access",
            "nullable": true
          },
          "due_date": {
            "type": "string",
            "format": "date",
            "description": "The due date of the Task.",
            "nullable": true
          },
          "assigned_user_id": {
            "type": "integer",
            "description": "The ID of the user assigned as the Task owner's. Assignment requires share permissions on the associated Launch.",
            "example": 1,
            "nullable": true
          },
          "checklist_section_id": {
            "type": "integer",
            "description": "The unique ID of the Checklist Section that the Task is assigned to.",
            "example": 1
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time (UTC) the Task was first created."
          },
          "updated_at": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time (UTC) the Task was last updated."
          }
        },
        "required": [
          "id",
          "name",
          "status",
          "description",
          "due_date",
          "assigned_user_id",
          "checklist_section_id",
          "created_at",
          "updated_at"
        ],
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 145,
      "2": 51,
      "3": 180,
      "4": 236,
      "5": 85,
      "6": 77,
      "7": 0,
      "8": 85,
      "9": 123,
      "10": 158,
      "11": 250
    }
  }
}
```