Update Field
POST
/admin/forms/{id}/fields/{fieldId}
const url = 'http://localhost:9000/admin/forms/example/fields/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","label":"example","field_type":"example","required":true,"sort_order":1,"field_options":"example","value":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:9000/admin/forms/example/fields/example \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "label": "example", "field_type": "example", "required": true, "sort_order": 1, "field_options": "example", "value": "example" }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
fieldId
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
name
string
label
required
string
field_type
string
required
boolean
sort_order
number
field_options
string
value
required
string
Example generated
{ "name": "example", "label": "example", "field_type": "example", "required": true, "sort_order": 1, "field_options": "example", "value": "example"}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}