Bug 24260

Summary: REST Self Registration
Product: Koha Reporter: Lari Taskula <lari.taskula>
Component: REST APIAssignee: Lari Taskula <lari.taskula>
Status: RESOLVED DUPLICATE QA Contact:
Severity: new feature    
Priority: P5 - low CC: andrew, arthur.suzuki
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: Sponsored Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Lari Taskula 2019-12-18 10:50:03 UTC
Support self registration via REST API
Comment 1 Arthur Suzuki 2022-07-28 12:24:14 UTC
This sounds like doing :
<pre>
curl -X POST https://demo.biblibre.com//api/v1/patrons \
    -H 'Authorization: Basic [your-token]' \
    -d '{
    "address":"anywhere",
    "city":"nowhere",
    "firstname":"asu",
    "surname":"zuki",
    "library_id":"SITE",
    "category_id":"ADULT"
}'
</pre>

to me the only bug we have here is, the post patron api doesn't use the self-registration prefs like PatronSelfRegistrationDefaultCategory.
It means the category is mandatory, where it is not when using the OPAC.
Comment 2 Katrin Fischer 2023-12-31 11:29:13 UTC
> 
> to me the only bug we have here is, the post patron api doesn't use the
> self-registration prefs like PatronSelfRegistrationDefaultCategory.
> It means the category is mandatory, where it is not when using the OPAC.

It's a little more than that. If you use email verification, which you should, then you'd want the patrons to be added to the borrower_modifications table first, not directly into the borrowers table.
Comment 3 Andrew Fuerste-Henry 2025-10-21 19:51:30 UTC
I'm marking this as a dupe of 30299, even though this is the older bug. 30299 has a bit more detail on it.

*** This bug has been marked as a duplicate of bug 30299 ***