Update docs/API.md

general rules for the data format