---
title: "Create Question Logic"
method: POST
path: "/api/v1/question-logic"
tags: ["Question Logic"]
---

# Create Question Logic

`POST /api/v1/question-logic`

## Request body

- CreateQuestionLogicReqV1
  - `study_id` string, required
  - `question_id` string, required
  - `operation` '==' | '<=' | '<' | '>' | '>=' | 'COUNT_LT' | 'INCLUDES' | 'ALWAYS' | 'INCLUDE_RESPONSE_IN_NEXT_QUESTION' | 'SMART_CONDITION', required
  - `comparison_value` string, nullable
  - `comparison_value_type` 'string' | 'int' | 'smart_condition', required
  - `next_question_id` string, nullable
  - `next_question_group_id` string, nullable
  - `redirect_url` string, nullable
  - `end_interview` boolean
  - `action_type` 'end_interview' | 'redirect_url' | 'next_question_id' | 'screen_out' | 'move_to_question_group', required
  - `language` string

## Response `201`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/getversive/apis/versive-public-api.md) · [All operations](https://skmtc.dev/getversive/apis/versive-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getversive/versive-public-api/revisions/00e66dd838cc/schema)
