Rest API
- Introduction
- GlobalWallets
- GlobalWalletAccessControl
- NameServices
- TestAccount
- CustomHostnames
- Exports
- Gates
- Settings
- Analytics
- Organizations
- Projects
- Custom Networks
- Chainalysis
- Environments
- Sessions
- Wallets
- Users
- Visits
- Members
- MfaSettings
- Invites
- ExternalJwt
- Origins
- UserApiTokens
- Tokens
- Allowlists
- Chains
- SDK Views
- Events
- Webhooks
- SDK
- Custom Fields
- DeeplinkUrls
- Mfa
- Waas
Custom Fields
Update an existing custom field by its ID
PUT
/
custom
/
fields
/
{customFieldId}
Copy
Ask AI
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",
"validationRules": {
"unique": true,
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
},
"position": 123
}'
Copy
Ask AI
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"key": "An example name",
"name": "An example name",
"enabled": true,
"required": true,
"fieldType": "text",
"validationRules": {
"unique": true,
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
},
"position": 123
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The unique identifier of the custom field to be updated
Body
application/json
Response
200
application/json
Custom field updated successfully
The response is of type object
.
Was this page helpful?
Copy
Ask AI
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",
"validationRules": {
"unique": true,
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
},
"position": 123
}'
Copy
Ask AI
{
"id": "95b11417-f18f-457f-8804-68e361f9164f",
"key": "An example name",
"name": "An example name",
"enabled": true,
"required": true,
"fieldType": "text",
"validationRules": {
"unique": true,
"regex": "^0x",
"validOptions": [
{
"label": "small"
},
{
"label": "medium"
},
{
"label": "large"
}
],
"checkboxText": "Agree to the terms and conditions"
},
"position": 123
}
Assistant
Responses are generated using AI and may contain mistakes.