Post Patron

Post Patron

POST /api/.../patrons/{id}?type=nonblockingnotes

Request content Type:

Post for 'nonblockingnotes' : Adds Patron non-blocking notes

Post for patron 'checkouts' : Checks out item(s) to patron

Post for patron 'reservation' : Place request

Request Information

Parameters
Name Type Required Description
id Integer Yes The unique id assigned to the patron.
type string One of the following: 'nonblockingnotes', 'checkout' Discriminator for request content type.
DtoPatronNonBlockingNotes Patron NonBlocking Notes Yes Define in the request body when type=nonblockingnotes
DtoPatronCheckOutRequest Patron item checkouts Yes Define in the request body when type=checkout
Request body
Example for 'nonblockingnotes'
application/json, text/json
{
   "NonBlockingStatusNotes": "this is a non blocking note via fiddler"
}

NonBlockingStatus notes cannot be null and cannot be greater than 4000 chars

Request body
Example for 'checkout'
application/json, text/json
        {
            "SelfCheckOutOptions": 0,
            "OverridePolicy": true,
            "OverrideTransDateTime": "2022-02-02T00:00:00-05:00",
            "SetDueDate": "2025-02-14T00:00:00-05:00",
            "Items": [ "12234","564646","4454545"]},
            "SpecialCirculationBlockedLibraryID": 99,
            "IncreasedCheckoutLimitsLocations": [35, 2000]

        
Request body
Example for 'reservation'
application/json, text/json
        {
            "PickupBranchID": 30,
            "Note": "my note",
            "NoReservationFee" : 0,
            "BibliographicRecordID": 22323,
            "ItemBarcode": null,
            "VolumeNumber": null,
            "BlockedForPickupLocations ": [ 99, 103]
         }

        

HTTP Response Codes

Code Description
200 OK. Success
201 Record created successfully
400 All business validation errors
404 Record not found