GET /api/.../patrons/{id}/associations
Returns list of patrons (children, etc.) associated with the patron. The list is sorted by ModificationDate in descending order.
Permission IDs found here.
| Name |
|---|
| AccessPatronServices_Allow |
| PatronStatus_Access |
| PatronStatus_DisplayAssociations |
| Name | Type | Required | Description |
|---|---|---|---|
| id | Integer | Yes | The unique id assigned to the patron. |
The associated patron list is returned upon success.
[
{
"LinkedPatronID":249531,
"Barcode":"1001600072547",
"PatronName":"Melody A Roman",
"BranchName":"Gloversville Public Library",
"Note":null,
"BlockMe":false,
"AllowMe": false,
"OrganizationID": 3
},
{
"LinkedPatronID":349011,
"Barcode":"1000501293228",
"PatronName":"Miriam Roman",
"BranchName":"Saratoga Springs Public Library",
"Note":null,
"BlockMe":true,
"AllowMe": false,
"OrganizationID": 3
}
]
POST /api/.../patrons/{id}/associations
Add one or multiple associations for a patron.
Permission IDs found here.
| Name |
|---|
| CreatePatronAssociations_Allow |
| Name | Type | Required | Description |
|---|---|---|---|
| id | Integer | Yes | The unique id assigned to the patron. |
| Name | Type | Required | Description |
|---|---|---|---|
| associations | DtoPatronAssociationInfo | Yes | Array of DtoPatronAssociationInfo objects |
[
{
"LinkedPatronId":189172,
"Note":"Stepson",
"BlockMe":false
},
{
"LinkedPatronId":189171,
"Note":"Stepdaughter",
"BlockMe":false
}
]
The associated patron list is returned upon success.
[
{
"LinkedPatronID":249531,
"Barcode":"1001600072547",
"PatronName":"Melody A Roman",
"BranchName":"Gloversville Public Library",
"Note":null,
"BlockMe":false,
"AllowMe": false,
"OrganizationID": 3
},
{
"LinkedPatronID":349011,
"Barcode":"1000501293228",
"PatronName":"Miriam Roman",
"BranchName":"Saratoga Springs Public Library",
"Note":null,
"BlockMe":true,
"AllowMe": false,
"OrganizationID": 3
}
]
| Code | Description |
|---|---|
| 200 | OK. Success |
| 400 | FAILURE.
|
| 404 | FAILURE. Invalid PatronID. |
| 409 | CONFLICT. Patron record is secured. |
PUT /api/.../patrons/{id}/associations
Modify associated patron info for a patron.
Permission IDs found here.
| Name |
|---|
| ModifyPatronAssociations_Allow |
| Name | Type | Required | Description |
|---|---|---|---|
| id | Integer | Yes | The unique id assigned to the patron. |
| Name | Type | Required | Description |
|---|---|---|---|
| association | DtoPatronAssociationInfo | Yes | Array of DtoPatronAssociationInfo objects |
[
{
"LinkedPatronId":18234,
"Note":"Uncle",
"BlockMe":false
},
{
"LinkedPatronId":189171,
"Note":"Stepson",
"BlockMe":false
},
{
"LinkedPatronId":16224,
"Note":"",
"BlockMe":true
}
]
The associated patron list is returned upon success.
[
{
"LinkedPatronID":249531,
"Barcode":"1001600072547",
"PatronName":"Melody A Roman",
"BranchName":"Gloversville Public Library",
"Note":null,
"BlockMe":false,
"AllowMe": false,
"RecordStatusID": 1,
"OrganizationID": 3
},
{
"LinkedPatronID":349011,
"Barcode":"1000501293228",
"PatronName":"Miriam Roman",
"BranchName":"Saratoga Springs Public Library",
"Note":null,
"BlockMe":true,
"AllowMe": false,
"RecordStatusID": 1,
"OrganizationID": 3
}
]
| Code | Description |
|---|---|
| 200 | OK. Success |
| 400 | FAILURE.
|
| 404 | FAILURE. Invalid PatronID. |
| 409 | CONFLICT. Patron record is secured. |
DELETE /api/.../patrons/{id}/associations/{associationid},{associationid},{associationid}
Delete one or more associated patrons for a patron.
Permission IDs found here.
| Name |
|---|
| DeletePatronAssociations_Allow |
| Name | Type | Required | Description |
|---|---|---|---|
| associationid | Integer | Yes | The unique id assigned to the patron. |
| id | Integer | Yes | One or more (comma separated) patron association IDs to delete |
| Code | Description |
|---|---|
| 200 | OK. Success |
| 400 | FAILURE.
|
| 404 | FAILURE. Invalid PatronID. |
| 409 | CONFLICT. Patron record is secured. |