Create a new user
| lang | string[a-zA-Z]{2} Default: "en" Example: lang=en Requested language |
| x-okapi-tenant | string x-okapi-tenant header value |
| x-okapi-token | string x-okapi-token header value |
| username | string A unique name belonging to a user. Typically used for login | ||||||||||||||||||||
| id | string A globally unique (UUID) identifier for the user | ||||||||||||||||||||
| externalSystemId | string An ID that corresponds to an external authority | ||||||||||||||||||||
| barcode | string The library barcode for this user | ||||||||||||||||||||
| active | boolean A flag to determine if a user can log in, take out loans, etc. | ||||||||||||||||||||
| blocked | boolean A flag to determine if the user has manual blocks | ||||||||||||||||||||
| type | string The class of user | ||||||||||||||||||||
| patronGroup | string A UUID corresponding to the group the user belongs to | ||||||||||||||||||||
| patronGroupName | string A group name corresponding to the group the user belongs to | ||||||||||||||||||||
| departments | Array of strings (uuid) unique [ items^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-... ] A UUIDs corresponding to the departments the user belongs to | ||||||||||||||||||||
| meta | object Deprecated | ||||||||||||||||||||
| proxyFor | Array of strings Deprecated | ||||||||||||||||||||
object Personal information about the user | |||||||||||||||||||||
| |||||||||||||||||||||
| enrollmentDate | string <date-time> The date in which the user joined the organization | ||||||||||||||||||||
| expirationDate | string <date-time> The date for when the user becomes inactive | ||||||||||||||||||||
| createdDate | string <date-time> Deprecated | ||||||||||||||||||||
| updatedDate | string <date-time> Deprecated | ||||||||||||||||||||
object (Metadata Schema) Metadata about creation and changes to records, provided by the server (client should not provide) | |||||||||||||||||||||
| |||||||||||||||||||||
object (tags) List of simple tags that can be added to an object | |||||||||||||||||||||
| |||||||||||||||||||||
object Object that contains custom field | |||||||||||||||||||||
| |||||||||||||||||||||
{- "username": "string",
- "id": "string",
- "externalSystemId": "string",
- "barcode": "string",
- "active": true,
- "blocked": true,
- "type": "string",
- "patronGroup": "string",
- "patronGroupName": "string",
- "departments": [
- "string"
], - "meta": { },
- "proxyFor": [
- "string"
], - "personal": {
- "lastName": "string",
- "firstName": "string",
- "middleName": "string",
- "preferredFirstName": "string",
- "email": "string",
- "phone": "string",
- "mobilePhone": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "addresses": [
- {
- "id": "string",
- "countryId": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "region": "string",
- "postalCode": "string",
- "addressTypeId": "string",
- "primaryAddress": true
}
], - "preferredContactTypeId": "string"
}, - "enrollmentDate": "2019-08-24T14:15:22Z",
- "expirationDate": "2019-08-24T14:15:22Z",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdByUserId": "string",
- "createdByUsername": "string",
- "updatedDate": "2019-08-24T14:15:22Z",
- "updatedByUserId": "string",
- "updatedByUsername": "string"
}, - "tags": {
- "tagList": [
- "string"
]
}, - "customFields": { }
}{- "username": "string",
- "id": "string",
- "externalSystemId": "string",
- "barcode": "string",
- "active": true,
- "blocked": true,
- "type": "string",
- "patronGroup": "string",
- "patronGroupName": "string",
- "departments": [
- "string"
], - "meta": { },
- "proxyFor": [
- "string"
], - "personal": {
- "lastName": "string",
- "firstName": "string",
- "middleName": "string",
- "preferredFirstName": "string",
- "email": "string",
- "phone": "string",
- "mobilePhone": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "addresses": [
- {
- "id": "string",
- "countryId": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "region": "string",
- "postalCode": "string",
- "addressTypeId": "string",
- "primaryAddress": true
}
], - "preferredContactTypeId": "string"
}, - "enrollmentDate": "2019-08-24T14:15:22Z",
- "expirationDate": "2019-08-24T14:15:22Z",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdByUserId": "string",
- "createdByUsername": "string",
- "updatedDate": "2019-08-24T14:15:22Z",
- "updatedByUserId": "string",
- "updatedByUsername": "string"
}, - "tags": {
- "tagList": [
- "string"
]
}, - "customFields": { }
}Retrieve users collection
object (RequestQueryParameters) Request query parameters(query, limit, offset and etc.) as object. |
| x-okapi-tenant | string x-okapi-tenant header value |
| x-okapi-token | string x-okapi-token header value |
{- "users": [
- {
- "username": "string",
- "id": "string",
- "externalSystemId": "string",
- "barcode": "string",
- "active": true,
- "blocked": true,
- "type": "string",
- "patronGroup": "string",
- "patronGroupName": "string",
- "departments": [
- "string"
], - "meta": { },
- "proxyFor": [
- "string"
], - "personal": {
- "lastName": "string",
- "firstName": "string",
- "middleName": "string",
- "preferredFirstName": "string",
- "email": "string",
- "phone": "string",
- "mobilePhone": "string",
- "dateOfBirth": "2019-08-24T14:15:22Z",
- "addresses": [
- {
- "id": "string",
- "countryId": "string",
- "addressLine1": "string",
- "addressLine2": "string",
- "city": "string",
- "region": "string",
- "postalCode": "string",
- "addressTypeId": "string",
- "primaryAddress": true
}
], - "preferredContactTypeId": "string"
}, - "enrollmentDate": "2019-08-24T14:15:22Z",
- "expirationDate": "2019-08-24T14:15:22Z",
- "createdDate": "2019-08-24T14:15:22Z",
- "updatedDate": "2019-08-24T14:15:22Z",
- "metadata": {
- "createdDate": "2019-08-24T14:15:22Z",
- "createdByUserId": "string",
- "createdByUsername": "string",
- "updatedDate": "2019-08-24T14:15:22Z",
- "updatedByUserId": "string",
- "updatedByUsername": "string"
}, - "tags": {
- "tagList": [
- "string"
]
}, - "customFields": { }
}
], - "totalRecords": 0,
- "resultInfo": {
- "totalRecords": 0,
- "responseTime": 0,
- "diagnostics": [
- {
- "source": "string",
- "code": "string",
- "message": "string",
- "module": "string",
- "recordCount": 0,
- "query": "string"
}
]
}
}Returns an indication whether the specified user exists or not
object (RequestQueryParameters) Request query parameters(query, limit, offset and etc.) as object. |
| x-okapi-tenant | string x-okapi-tenant header value |
| x-okapi-token | string x-okapi-token header value |
{- "code": 400,
- "errorMessage": "Validation error"
}Set the PIN for a user
| x-okapi-tenant | string x-okapi-tenant header value |
| x-okapi-token | string x-okapi-token header value |
| id required | string (uuid) ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-... UUID |
| pin required | string PIN of the user |
{- "id": "string",
- "pin": "string"
}{- "code": 400,
- "errorMessage": "Validation error"
}Verify the PIN for a user
| x-okapi-tenant | string x-okapi-tenant header value |
| x-okapi-token | string x-okapi-token header value |
| id required | string (uuid) ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-... UUID |
| pin required | string PIN of the user |
{- "id": "string",
- "pin": "string"
}{- "code": 400,
- "errorMessage": "Validation error"
}