Added correct headers - application/json content type to api