updated curl headers on rest api