Skip to content

Update Field

POST
/admin/content/{collectionId}/fields/{fieldId}
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 }'
collectionId
required
string
fieldId
required
string
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
}

OK

Media type application/json
object
Example generated
{}