Added type for POST to REST API