The code in your links is for creating new records/rows, not creating new fields/columns.
Currently it is not possible to create new fields/columns using the REST API. It is possible to create some new fields using Scripting app (but not automation scripts). Custom apps can also create new fields with selected field types.