question

hj02 avatar image
hj02 asked Jacob Abrams answered

Generating a unique Item ID

Whenever I post a new item through the API, Clover generates a unique item ID for it, regardless if I have already specified one. How would I get it to keep the ID that I want? Or immediately access the ID that it automatically creates?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Jacob Abrams avatar image
Jacob Abrams answered

Both the REST API and the Android API return the newly created item in the response so you can get the unique id right there.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community