---
title: "Update an existing question"
method: PATCH
path: "/v1/org/{orgId}/question/{questionId}"
tags: ["question"]
---

# Update an existing question

`PATCH /v1/org/{orgId}/question/{questionId}`

## Path parameters

- `orgId` string, required
- `questionId` string, required

## Request body

- UpdateQuestion
  - `question` string — text of the question
  - `questionTr` Translations
    - `values` object, required
  - `fieldId` string — if the question is linked to a field, the id of that field. Any question responses will be automatically saved to the field
  - `type` 'ADDRESS' | 'AUDIO' | 'BOOLEAN' | 'COMP' | 'COMPOUND' | 'COMP_BAND' | 'CONTACTS' | 'CURRENCY' | 'DATE' | 'DECIMAL' | 'ELAPSED_DAYS' | 'ELAPSED_MONTHS' | 'ELAPSED_YEARS' | 'EMAIL' | 'ENUM' | 'ENUM_EXPR' | 'ENUM_MULTI' | 'ENUM_SCALE' | 'EXPR' | 'FILE' | 'GROUP' | 'GROUPS' | 'GROUP_ASSIGNMENTS' | 'GROUP_TYPE' | 'GROUP_POSITION_ASSIGNMENTS' | 'IMAGE' | 'INTEGER' | 'JOB' | 'JOB_CODE' | 'JOBS' | 'JOB_TIER' | 'LIST' | 'MAP' | 'MONEY' | 'NAME' | 'OBJECT' | 'PAY_INTERVAL' | 'PERCENT' | 'PERSON' | 'PERSONS' | 'PHONE' | 'STOCKGRANT' | 'STRING' | 'TABLE_REF' | 'TEXT' | 'TIMEOFF' | 'TIMESTAMP' | 'TRACKED_GROUP' | 'URL' | 'USER' | 'VARIABLE_COMP' | 'VARIABLE_COMPS' — datatype of the question
  - `plural` 'SINGLE' | 'LIST' | 'SET' — plural type of the question datatype (either SINGLE, LIST, or SET)
  - `values` EnumValue[] — possible values (enum type only)
    - `name` string, required — enum value name
    - `label` string, required — enum value label
    - `color` string — color of property
    - `expr` string — computed expression, for ENUM_EXPR type
    - `num` number — numeric value, for ENUM_SCALE type
    - `sort` integer — sort order
    - `rank` integer — rank order, if selected in rank order
    - `id` string — unique identifier for enum
    - `labelTr` Translations
      - `values` object, required
  - `places` integer — number of decimal places for numeric values
  - `options` FieldOptions
    - `min` string — minimum value, for numeric and date fields
    - `max` string — maximum value, for numeric and date fields
    - `minItems` integer
    - `maxItems` integer
    - `stackRank` boolean
    - `step` number
    - `enableEditDialog` boolean
    - `requiredJobField` boolean
    - `excludeTargetPersonId` boolean
    - `maxLength` integer
    - `readOnly` boolean
    - `includeFormer` boolean
    - `effectiveDated` boolean
    - `unique` boolean
    - `required` boolean

## Response `204`

question updated

## Other responses

- `400` — invalid data
- `401` — not authorized
- `403` — permission denied
- `404` — not found

---

[API](https://skmtc.net/charthop/apis/charthop-api.md) · [All operations](https://skmtc.net/charthop/apis/charthop-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/charthop/charthop-api/revisions/26da34ae934f/schema)
