Update Field
POST
/admin/content/{collectionId}/fields/{fieldId}
const url = 'http://localhost:9000/admin/content/example/fields/example';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"label":"example","field_type":"example","required":true,"options":{},"default_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/content/example/fields/example \ --header 'Content-Type: application/json' \ --data '{ "label": "example", "field_type": "example", "required": true, "options": {}, "default_value": "example", "sort_order": 1 }'Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” collectionId
required
string
fieldId
required
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
label
string
field_type
string
required
boolean
options
object
key
additional properties
any
default_value
required
string
sort_order
number
Example generated
{ "label": "example", "field_type": "example", "required": true, "options": {}, "default_value": "example", "sort_order": 1}Responses
Section titled “ Responses ”OK
Media type application/json
object
Example generated
{}