Exige
Authorization: Bearer com o JWT da conta. Onde o caminho ou o corpo pedem companyId e userId, use a empresa e o usuário dessa sessão.
Corpo
title é obrigatório. entity: business, activity, forecast, contact ou organization. measureBy: business e forecast=Number of deals ou Value of deals; activity=Number of activities; contact e organization=Number of contacts. viewBy: business e forecast=Deal created on ou Deal closed on; activity=Activity date; contact e organization=Contact created on. period: Daily, Weekly, Monthly, Quarterly ou Yearly. segmentBy opcional: Status, Owner, Stage ou Type. filters é uma lista com id, field, operator e value, customValue ou dateRange. Em data, value pode ser This year, This month, This week ou Last month. Não invente measureBy nem viewBy. chartType opcional: bar, list, timeline ou number.