How can I change the data-type of a field in my document type?

api

#1

I am using your API and I made a mistake in one of my field types. I made the URL field a string but it should actually be an enum. How can I change it?

You can always add new fields to a document type on the fly, but it’s not possible to change/update existing ones. This is because once a the data type of a field is defined within your engine schema, it is locked to that data type.

If creating a new field with the proper data-type isn’t an option, you would need to delete the entire document type and then recreate it. Then you could POST the documents again with the correct data type for your URL field.