Update Option
POST
/admin/forms/{id}/fields/{fieldId}/options/{optionId}
const url = 'http://localhost:9000/admin/forms/example/fields/example/options/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"label":"example","value":"example","sort_order":1}'};
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/options/example \ --header 'Content-Type: application/json' \ --data '{ "label": "example", "value": "example", "sort_order": 1 }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string
fieldId
required
string
optionId
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
label
string
value
string
sort_order
number
Example generated
{ "label": "example", "value": "example", "sort_order": 1}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}