Page 1 of 1

Questions about player notes

Posted: Wed May 28, 2025 11:37 am
by loquacious
I'm trying to use the API to add notes to a player and I get the response {"Result":"Error","Error":"Missing Encrypted parameter"}.

My URL parameters are Command=AccountsNotes&password=Password&player=Test&Action=Set&Json=Yes&Data={"Result":"Ok","Player":"test","Count":2,"Label":[],"Subject":["test","test2"],"Color":["0","8"],"Chat":["Yes","Yes"],"Note":["aWs=","SHYkdyVnJ2Zmfm4t"]}

Any suggestions? I'm trying to be able to back up a player's notes before I delete them so that if I restore them later, their notes return. Also, what happens to the notes player1 has written about player2 if player2 is deleted?

Thanks!

Re: Questions about player notes

Posted: Wed May 28, 2025 12:05 pm
by Kent Briggs
Looks like I forgot to update the API docs for that command. Include a Encrypted = Yes parameter in your call to AccountsNotes. Notes are encrypted beginning with version 7.00. When you delete a player, it deletes both that player's notes and the notes other players made on that deleted player.

Re: Questions about player notes

Posted: Wed May 28, 2025 12:18 pm
by loquacious
So if I wanted to archive those notes made by Player1 about Player2, I would need to use the API to go through every player and export their notes just in case they had written any about Player2 before I deleted them.

That's doable, I think. Thanks!

Re: Questions about player notes

Posted: Wed May 28, 2025 12:26 pm
by Kent Briggs
loquacious wrote: Wed May 28, 2025 12:18 pm So if I wanted to archive those notes made by Player1 about Player2, I would need to use the API to go through every player and export their notes just in case they had written any about Player2 before I deleted them.
Yeah, I suppose. Assuming the player that claims that name again is the same person as before. Otherwise those notes should stay deleted.