Contentful logo

Contentful Community

Where is the field value format reference?

#1

I’m trying to create entries via the API and keep getting validation errors, but they never explain why a value is not valid. The documentation only seems to give a very simple example with a few short text fields.

Where do I find out how to format a date field? I’ve tried “2019-04-15” and “2019-04-15T00:00:00Z” but both give validation errors, even though this appears to be their format when you get an entry.

And what about a short text field that’s a list? Is it a list of objects with an “en-US” property? Or an object with an “en-US” property that’s a list?

Do text fields even have to have a locale? What about rich-text fields?

0 Likes