https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39358 Bug ID: 39358 Summary: Automatically assign itemId for items created with https://api.koha-community.org/api/v1/biblios/{biblio_ id}/items Change sponsored?: --- Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: REST API Assignee: koha-bugs@lists.koha-community.org Reporter: urho@broomworks.fi QA Contact: testopia@bugs.koha-community.org CC: tomascohen@gmail.com Correct me if I'm wrong but currently creating new items with POST to /biblios/{biblio_id}/items requires item_id. I think it would be more convenient if item_id could be omitted and the handler would assign items using the auto increment value of items table. Then on the response item_id:s would be populated accordingly. This would prevent potential conflicts when items are being created from multiple sources. Additionally, it seems that item IDs can be manually entered above 2147483647, causing item creation to lock up until the auto-increment value is manually reset. So in a nutshell: 1) Allow item_id to be omitted in POST /biblios/{biblio_id}/items requests. 2) If item_id is not provided, the API should let the database assign it via auto-increment. 3) The response should return the created items with their assigned item_id values. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.