Bug 24260

Summary: REST Self Registration
Product: Koha Reporter: Lari Taskula <lari.taskula>
Component: REST APIAssignee: Lari Taskula <lari.taskula>
Status: NEW --- QA Contact:
Severity: new feature    
Priority: P5 - low CC: arthur.suzuki
Version: unspecified   
Hardware: All   
OS: All   
Change sponsored?: Sponsored Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

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.