Create new Survey Constant
  • 28 Aug 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Create new Survey Constant

  • Dark
    Light
  • PDF

Article summary

Post
/survey-constants/

Operation is used to create new Survey Constant. Available from product version 2024.3 and for admin users only.

Security
API Key
Header parameter nameAuthorization

Token issued for API consumer.

Body parameters

Survey Constants to be created

object

SurveyConstant

groupname
string

Group name of constant

numValue
integer

Numeric value

orderno
integer

Order number

txt
string

Human readable textual representation

txtValue
string

Text value

Responses
201

A newly created Survey Constant

{
  "groupname": "TEST_GROUPNAME",
  "id": 1,
  "numValue": 1,
  "orderno": 1,
  "txt": "Constant 1",
  "txtValue": "This is constant 1."
}
object

SurveyConstant

groupname
string

Group name of constant

id
integer

Unique id of constant

listUrl
string (url)

Url to fetch all contants from this group

numValue
integer

Numeric value

orderno
integer

Order number

txt
string

Human readable textual representation

txtValue
string

Text value

400

There was an error in request. Usually field validation failed.

{
  "orderno": [
    "A valid integer is required."
  ]
}
object

Fields which failed validation

property*
Array of string additionalProperties

List of validation errors for this fieldname

string

Validation error

401

Authentication credentials are missing or invalid

{
  "details": "Authentication credentials were not provided"
}
object
details
string

Detailed description of error


Was this article helpful?