---
search:
  tags:
    - projects
    - POST
seo:
  description: >-
    Submits an answer to a question… Reference for the POST
    /projects/{projectId}/items/{itemId}/questions/{id}/answer endpoint in the
    Leadtime Public API API.
sidebar:
  badge: POST
  label: Answer a question in a project component item
title: Answer a question in a project component item
type: openapi-operation
---
Submits an answer to a question within a project component item. This endpoint allows users to provide answers to questions that capture customer requirements or project details.

**Question Types and Answer Formats:**
Questions can have different types, and each type requires a specific answer format. Only provide the answer field(s) relevant to the question type:
- **ShortText**: Provide shortTextAnswer (string)
- **Editor**: Provide editorAnswer (HTML or Markdown string)
- **Checkbox**: Provide selectedOptions (array of option IDs for multiple selections)
- **Radio**: Provide selectedOption (single option ID string)
- **Files**: Provide fileUrls (array of file URL strings)
- **Datepicker**: Provide dateAnswer (ISO 8601 date string)
- **Multiplier**: Provide multiplierAnswer (number)
- **Person**: Provide selectedPersonId (array of person IDs)

**Automatic Processing:**
When you submit an answer, the system automatically:
- Tracks who answered (answeredBy is set to the current user)
- Records when the answer was provided (answeredAt timestamp)
- Calculates the isAnswered flag based on whether a valid answer was provided
- Updates option selections for Checkbox/Radio types (marks options as selected)
- Recalculates project conditions to show/hide dependent items based on the answer
- Updates effort calculations if the question affects pricing (for Checkbox/Radio/Multiplier types)
- Updates timeframes if effort changed

**Permissions:**
This endpoint uses the processComponentsQuestions permission, which is more permissive than manageComponents. This allows users to answer questions and participate in project configuration without requiring full component edit access.

<Operation source="api-reference" id="projectcomponentscontroller-answerquestion" />
