Send the action to jsonAPI