Created post API method