Create new sn constant.
  • 17 Jan 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Create new sn constant.

  • Dark
    Light
  • PDF

Article summary

Post
/sn_constants/
Security
API Key
Header parameter nameAuthorization

Token issued for API consumer.

Body parameters

Sn Constant data to be saved.

object
groupname
string Required

Group name of constant. Group name must contain only uppercase letters separated by underscores.

id
integer

Primary key

num_value
integer

Numerical value of the constant

orderno
integer

Order number

txt
string

Human readable textual representation

txt_2
string

Human readable textual representation

value
string

Logical textual value

Responses
201

Sn Constant created successfully.

object
groupname
string

Group name of constant. Group name must contain only uppercase letters separated by underscores.

id
integer

Primary key

num_value
integer

Numerical value of the constant

orderno
integer

Order number

txt
string

Human readable textual representation

txt_2
string

Human readable textual representation

value
string

Logical textual value

400

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

{
  "groupname": [
    "This field is required."
  ],
  "id": [
    "This field is required."
  ]
}

Fields which failed validation.

401

Authentication credentials are missing or invalid

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

Detailed description of error


Was this article helpful?