Autogenerated IDs consist of alphanumeric symbols, but there is an endpoint allowing the creation of entries with custom IDs
https://www.contentful.com/developers/docs/references/content-management-api/#/reference/entries/entry/create-update-an-entry/console/java
Which characters are allowed in the custom ID?
May Space also has a non-standard ID (containing ‘-’ for example)?
Hi @d.k.brazz,
If you choose an ID yourself it must adhere to the following rules:
- It has a length between 1 and 64 characters.
- It only includes alphanumeric characters, dots
.
, hyphens -
or underscores _
.
Represented as a regular expression, this is /^[a-zA-Z0-9\.-_]{1,64}$/
.
2 Likes
Thankyou @gabriel, it is very helpful
No problem - glad it helped!
sgopal
5
A follow up question: Can we set the custom Id via the UI in contentful (if so, how?) OR is it a feature that is supported only via the API?