v1Ressources/Statistiques de profil/putDéfinir les objectifs de rapport d'un client
Définir les objectifs de rapport d'un client
Choisissez quels objectifs du site web du client comptent comme actions sur le site web dans Rapports, et le type de chacun. N'envoyez que les objectifs à modifier, avec les noms exactement tels que le GET les renvoie. Un objectif que les sources du client ne signalent pas renvoie 400. Renvoie les objectifs du client dans leur état actuel, et la modification s'applique aux actions sur le site web pour toutes les périodes.
put
clients:write/api/v1/clients/{id}/report-goalsParamètres de requête
idstringobligatoire
L'id du client.
Corps de la requête
goalsarray of objectobligatoire
providerstring (ga4 | plausible | posthog)obligatoire
namestringobligatoire
countedbooleanobligatoire
kindstring (form | call | booking | other)obligatoire
Réponse
dataarray of objectfacultatif
providerstring (ga4 | plausible | posthog)facultatif
namestringfacultatif
countedbooleanfacultatif
kindstring (form | call | booking | other)facultatif
custombooleanfacultatif
last12Weeksnumberfacultatif
Erreurs
400Il manque un paramètre requis à la requête, ou elle est invalide.
401Clé API manquante, invalide, expirée ou révoquée.
403La clé n'a pas la permission requise, ou n'est pas autorisée pour ce client/établissement.
404La ressource est introuvable, ou n'appartient pas à votre agence.
429Trop de requêtes. Réessayez après le nombre de secondes indiqué dans l'en-tête Retry-After.
put/api/v1/clients/{id}/report-goals
Votre clé API
id *
Corps de la requête*
{}Guides qui utilisent cette ressource
- What Is a Local SEO API?A local SEO API measures how a business ranks in local search, with geo-grid rank tracking, profile analytics and AI visibility, not just backlinks.
- How to Add Local Marketing Features to Your SaaSAdd listings management, reviews, Google posts, profile analytics, rank tracking and AI visibility to a SaaS product with the Synup API, tenant by tenant.
- How to Build a Multi-Location Marketing DashboardBuild a multi-location marketing dashboard from the API's rollup endpoints, one call per panel, covering listings, reviews, rank, AI visibility and duplicates.
- How to Retrieve Google Business Profile Analytics via APIPull Google Business Profile analytics through an API, portfolio-wide and per location, with views, calls, direction requests and a maps-versus-search split.
- Retrieve Profile Analytics via APIPull Google Business Profile analytics with the Synup API, portfolio-wide or per location, with views, actions, calls and direction requests.