POST
/
environments
/
{environmentId}
/
custom
/
fields

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36

Body

application/json
name
string
required
Maximum length: 255
enabled
boolean
required
required
boolean
required
fieldType
enum<string>
required
Available options:
text,
checkbox,
select
position
number
required
validationRules
object

Optional validation rules for the custom field

Response

201 - application/json
id
string
required
Required string length: 36
key
string
required
Maximum length: 255
name
string
required
Maximum length: 255
enabled
boolean
required

A flag indicating whether the custom field is active.

required
boolean
required

A flag indicating whether the custom field is required.

fieldType
enum<string>
required
Available options:
text,
checkbox,
select
position
number
required
validationRules
object

Optional validation rules for the custom field

Was this page helpful?