adds post on API and JSON