---
title: "Create habit possible answer"
method: POST
path: "/api/v5/admin/habit-possible-answers/"
tags: ["Admin Habit Possible Answers"]
---

# Create habit possible answer

`POST /api/v5/admin/habit-possible-answers/`

## Request

- Base URL: `https://api.pavlok.com`
- URL: `https://api.pavlok.com/api/v5/admin/habit-possible-answers/`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pavlok/apis/pavlok-api-v5/docs/api/v5/admin/habit-possible-answers/post.ts> (a function with typed inputs; its response is checked against the schema)

Create habit possible answer

## Request body

- BodyHabitPossibleAnswersAdminCreateApiV5AdminHabitPossibleAnswersPost
  - `possible_answer` HabitPossibleAnswerInCreate, required
    - `text` string, required
    - `habitQuestionId` integer, required
    - `icon` string

## Response `201`

Successful Response

- HabitPossibleAnswerInResponse
  - `habitPossibleAnswer` HabitPossibleAnswer, required
    - `createdAt` string, date-time
    - `updatedAt` string, date-time
    - `deletedAt` string, date-time
    - `id` integer
    - `habitQuestionId` integer, required
    - `text` string, required
    - `iconId` integer
    - `iconUrl` string

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavlok/apis/pavlok-api-v5.md) - [All operations](https://skmtc.dev/pavlok/apis/pavlok-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/pavlok/apis/pavlok-api-v5/revisions/3d192098b1ac?raw)
