Skip to main content
POST
/
v3
/
questions
Add Question
curl --request POST \
  --url https://api.{tenant}.getomneo.com/api/v3/questions \
  --header 'Content-Type: application/json' \
  --data '
{
  "handle": "<string>",
  "label": "<string>",
  "name": "<string>",
  "description": "<string>",
  "is_system": true,
  "is_active": true,
  "meta": [
    "<string>"
  ],
  "help_text": "<string>",
  "icon": "<string>",
  "image_url": "<string>",
  "validation": [
    "<string>"
  ],
  "default_value": "<string>",
  "live_from": "2023-11-07T05:31:56Z",
  "live_to": "2023-11-07T05:31:56Z",
  "answer_ttl_days": 2,
  "link_target": "<string>",
  "link_write_policy": "<string>",
  "options": [
    {
      "value": "<string>",
      "label": "<string>",
      "image": "<string>"
    }
  ]
}
'
{
  "data": {
    "id": 123,
    "handle": "<string>",
    "name": "<string>",
    "description": "<string>",
    "is_system": true,
    "is_active": true,
    "meta": [
      "<unknown>"
    ],
    "link_type": "<string>",
    "link_target": "<string>",
    "link_write_policy": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "is_live": true,
    "current_version": {
      "id": 123,
      "question_id": 123,
      "version": 123,
      "label": "<string>",
      "description": "<string>",
      "help_text": "<string>",
      "icon": "<string>",
      "image_url": "<string>",
      "type": "<string>",
      "options": [
        "<unknown>"
      ],
      "validation": [
        "<unknown>"
      ],
      "default_value": [
        "<unknown>"
      ],
      "live_from": "<string>",
      "live_to": "<string>",
      "answer_ttl_days": 123,
      "created_at": "<string>",
      "updated_at": "<string>"
    },
    "versions": [
      {
        "id": 123,
        "question_id": 123,
        "version": 123,
        "label": "<string>",
        "description": "<string>",
        "help_text": "<string>",
        "icon": "<string>",
        "image_url": "<string>",
        "type": "<string>",
        "options": [
          "<unknown>"
        ],
        "validation": [
          "<unknown>"
        ],
        "default_value": [
          "<unknown>"
        ],
        "live_from": "<string>",
        "live_to": "<string>",
        "answer_ttl_days": 123,
        "created_at": "<string>",
        "updated_at": "<string>"
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.omneo.io/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
handle
string
required
Maximum string length: 255
label
string
required
Maximum string length: 255
type
enum<string>
required
Available options:
text,
textarea,
number,
slider,
boolean,
single_select,
multi_select,
date,
datetime,
email,
phone,
json
name
string | null
Maximum string length: 255
description
string | null
is_system
boolean
is_active
boolean
meta
string[] | null
help_text
string | null
icon
string | null
Maximum string length: 255
image_url
string<uri> | null
Maximum string length: 2048
validation
string[] | null
default_value
string | null
live_from
string<date-time> | null
live_to
string<date-time> | null
answer_ttl_days
integer | null
Required range: x >= 1
Available options:
none,
profile,
transaction,
rating,
interaction,
appointment,
connection,
transaction_item
Maximum string length: 255
Maximum string length: 255
options
object[] | null

Response

Question

data
Question · object
required