https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36505

            Bug ID: 36505
           Summary: Cannot update patron attributes via PUT reuqst on
                    Patrons endpoint
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: REST API
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

According to our docs, you can include an array of patron attributes on a
patrons PUT request:
https://api.koha-community.org/Development.html#tag/patrons/operation/updatePatron

When testing I sent:
{"category_id":"PT","library_id":"CPL","surname":"Ballard","extended_attributes":[{"extended_attribute_id":"1","type":"SHOW_BCODE","value":"0"}]}

And I got an error:
[2024/04/03 17:27:40] [ERROR] PUT /api/v1/patrons/21: unhandled exception
(Koha::Exceptions::Object::PropertyNotFound)<<No property extended_attributes
for Koha::Patron>>

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to