API - Updating Lead data (Postman)

Created by Andre Greiner, Modified on Thu, 04 May 2023 at 10:48 AM by Andre Greiner

Currently in Spotter we have some ways to update Leads data. In this article, we will deal with updating Leads via API with Postman (if you don't have it installed, you can download it by clicking here ).  


After downloading, open Postman and click on "Collections" > + > Assign a name to this folder (where the requests will be) > click on the three dots > Add Request:




The first step is to identify the correct documentation, from there we will have the EndPoint to be used. When it comes to using Spotter V2, this is the documentation to be used:  https://exactspotter.docs.apiary.io/#/reference/0/leads-update


After accessing the documentation, locate in Postman where to insert the EndPoint and Headers:




IMPORTANT:  The Token is found in Spotter by accessing the left side menu "Settings" > Integrations > Token Exact API.



After making the initial adjustment, let's move on to the content to be sent to Spotter. In the documentation we see some information options to be sent. To fill in which data you want to send, first select the "Body" > Raw part. In this article we will make the request by JSON :



Now let's fill in the submission. There will be two places to fill in: Endpoint and Body. 


For the Endpoint, in "id" change to the Lead ID that you want to update the information and in Body we will insert which data we want to be sent. 


IMPORTANT:  The Lead ID information can be located inside Spotter directly in the URL of the desired Lead, exporting the Leads Registration Data in the Leads List or exporting the Leads listing via API.


For example, updating origin and CNPJ information inside a Lead:



The data to be sent from Origin and Market, for example, must be active within Spotter. After filling in the data you want to update, click on "SEND" and the information will be sent on the Lead's card. 

  

IMPORTANT:  The CPF/CNPJ field will only be filled in if it is enabled within Spotter. To activate it, just access the "Settings" menu > Advanced Settings > Others > "Enable CPF/CNPJ field in Lead Registration".


Rate this article so we can improve our service

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article