curl --request PUT \
--url https://app.dynamicauth.com/api/v0/custom/fields/{customFieldId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "An example name",
"enabled": true,
"required": true,
"fieldType": "text",
"position": 123,
"validationRules": {
"unique": true,
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
}
}
'{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"key": "An example name",
"name": "An example name",
"enabled": true,
"required": true,
"fieldType": "text",
"position": 123,
"validationRules": {
"unique": true,
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
}
}curl --request PUT \
--url https://app.dynamicauth.com/api/v0/custom/fields/{customFieldId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "An example name",
"enabled": true,
"required": true,
"fieldType": "text",
"position": 123,
"validationRules": {
"unique": true,
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
}
}
'{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"key": "An example name",
"name": "An example name",
"enabled": true,
"required": true,
"fieldType": "text",
"position": 123,
"validationRules": {
"unique": true,
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the custom field to be updated
255"An example name"
text, checkbox, select Optional validation rules for the custom field
Show child attributes
If this field must be unique for every user in the environment
The regex pattern that the text field must match
255"^0x"
The dropdown options for the select field
[
{ "label": "small" },
{ "label": "medium" },
{ "label": "large" }
]The text that will be displayed for the checkbox field
255"Agree to the terms and conditions"
Custom field updated successfully
36"95b11417-f18f-457f-8804-68e361f9164f"
255"An example name"
255"An example name"
A flag indicating whether the custom field is active.
A flag indicating whether the custom field is required.
text, checkbox, select Optional validation rules for the custom field
Show child attributes
If this field must be unique for every user in the environment
The regex pattern that the text field must match
255"^0x"
The dropdown options for the select field
[
{ "label": "small" },
{ "label": "medium" },
{ "label": "large" }
]The text that will be displayed for the checkbox field
255"Agree to the terms and conditions"
Was this page helpful?