Api  >  Library Patron: Add Patron


Library Patron: Add Patron

Service URL /v1/libraries/{libraryId}/patrons

Service Endpoints


Add Patron

Endpoint URL /v1/libraries/{libraryId}/patrons/
Description
Adds a patron to a library
Http Messages
HTTP POST Request
Fiddler Request
POST /v1/libraries/{libraryId}/patrons HTTP/1.1
User-Agent: fiddler
Authorization: basic {basicToken}
Host: api.rbdigitalstage.com
Accept: application/json
Content-Type: application/json
 
{
  "firstName": "john",
  "lastName": "smith",
  "userName": "jsmith",
  "password": "12345",
  "email": "jsmith@yahoo.com",
  "postalCode": "30904",
  "isActive": false,
  "libraryId": {libraryId}
}

HTTP POST Response
Response
HTTP/1.1 201 Created
 
{
  "libraryPin": "****",
  "firstName": "john",
  "lastName": "smith",
  "userName": "jsmith",
  "password": "******",
  "email": "jsmith@yahoo.com",
  "postalCode": "30904",
  "isActive": false,
  "patronId": 1347658,
  "libraryId": 9999
}