Custom Fields
Create a new custom field for an environment
post/environments/{environmentId}/custom/fields
Request
- Base URLhttps://app.dynamicauth.com/api/v0
- AuthHTTP bearer
Path parameters
environmentIdstring required
Example:95b11417-f18f-457f-8804-68e361f9164f
ID of the environment
Request body
Example request
{
"name": "An example name",
"validationRules": {
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
}
}Response
Custom field created successfully
Example response
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"key": "An example name",
"name": "An example name",
"validationRules": {
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
}
}Changes
No recorded changes to this operation across all 5 revisions of this API.