Bug 41609

Summary: When registering via the API extended attributes are checked for mandatory but not opac_mandatory
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: REST APIAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: tomascohen
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- 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 Lucas Gass (lukeg) 2026-01-13 23:15:53 UTC
To recreate:

1. Make an extended attribute and set it as "Staff interface mandatory:"
2. Using Postman or cURL or whatever you like, make an API request to localhost:8080 AND localhost:8081
3. You'll get a response like "Missing mandatory extended attribute (type=SOMEATTR)"

It would be good if we could pass something to define which interface to mock/follow? 

Or add a api_mandatory option to extended attributes?