Are primary keys being reused?

Hi Pipedrive,

When I create a new person (using POST /persons) that person gets a new ID assigned, but when I then search deals (using GET /persons/:id/deals using that new ID I get existing deals back. Any idea what could be the cause of this? If you are indeed reusing primary keys, why are they not removed from relations when the records using that pk are removed? Because what’s happening now is unacceptable, new contacts are getting old deals associated with them.

Mingo.

Hi Mingo and welcome to the DevCommunity forum :wave:

this definitely should not be expected. I was not able to replicate the described behavior in any company.

Can you please share more details on how you do these requests - ideally share the whole requests to replicate this issue (without the auth token)?

Best regards,
David

DM-ed, thanks for checking.