Skip to content

process to query for patrons turning 13 and modifying the patron account change the ptype from 1 to 2

Notifications You must be signed in to change notification settings

cincinnatilibrary/chpl-patron-turns-13

Repository files navigation

CHPL Patron Turns 13

This script utilizes the Sierra REST API endpoint, put /v6/patrons/{id} to modify patron records, changing any child-only card to a teen-only card after they have turned 13 years old.

This script will query for:

  • patrons who have turned 13 years old on the last script_run_date
  • patrons that are one of the following ptypes :
        (
            1
        )

The content of the body sent in the PUT request (/v6/patrons/{id}) will look like the following:

{
  "patronType": 2
}

About

process to query for patrons turning 13 and modifying the patron account change the ptype from 1 to 2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published