about rest api event

I am testing syncthing event rest api using by curl via cmd.

I added a big file at shard foloder of the other pc that connected. after that I sent a GET request like below…

curl -X GET -H “X-API-Key:somekey” http://localhost:8384/rest/events?events="DownloadProgress"

a few later, I receive event result, it wast id 1.

after that I sent GET request again, the event id 1 is still returned.

Is there any way to remove received event per id?

thank you

https://docs.syncthing.net/rest/events-get.html#events-get

Specify the since parameter.

1 Like

Ok, Thanks, I understood id of event and since parameter.

then, is id parameter int? or string?

If type of it is int, what happen exceed range of int or unsigned int?

It’s an int. It would take 68 years of producing an event every second for that to happen.

I’d hope that you restart syncthing/computer by that point.

This number goes back to zero after every restart.

1 Like

Ok I understood that. Thank you so much :slight_smile: