Download OpenAPI specification:Download
An API for creating myTurn user accounts. This is intended to be used as part of a self registration process.
username required | string The user's myTurn.com username, or their membership ID with their organization/tool library. |
password required | string The user's myTurn.com password. |
{- "username": "string",
- "password": "string"
}
{- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "displayName": "string",
- "emailAddress": "string",
- "expires_in": 0,
- "token_type": "Bearer",
- "access_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "selfServeEnabled": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true
}
}
]
}
username required | string The user's myTurn.com username, or their membership ID with their organization/tool library. |
password required | string The user's myTurn.com password. |
{- "username": "string",
- "password": "string"
}
{- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "displayName": "string",
- "emailAddress": "string",
- "expires_in": 0,
- "token_type": "Bearer",
- "access_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "selfServeEnabled": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true
}
}
]
}
Lists all the fields the organization has configured to be requested or required for users to sign up during the registration process.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": "lastName",
- "label": "Last Name",
- "type": "string",
- "required": true,
- "options": [
- "string"
]
}
]
Check the username against username rules, and make sure the name is available. Usernames are unique across all myTurn sites.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
username required | string |
{- "username": "string"
}
{- "error": "string",
- "validationSuccessful": true,
- "details": {
- "code": "duplicate",
- "field": "username",
- "message": "Ce nom d'usager existe déjà"
}
}
Try various way of mixing last name, first name and desired username, and add digits if necessary to find a unique username. Suggests up to 3 options.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
lastName | string |
firstName | string |
username | string |
{- "lastName": "Tables",
- "firstName": "Bobby",
- "username": "littleBobbytables"
}
{- "usernames": [
- "btables23"
]
}
Check to make sure the membership ID is not already taken by another user at this organization.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
membershipId required | string |
{- "membershipId": "string"
}
{- "error": "string",
- "validationSuccessful": true,
- "details": {
- "code": "duplicate",
- "field": "username",
- "message": "Ce nom d'usager existe déjà"
}
}
Make sure the email address is not already taken by another user at this organization, and that the email address is well formed.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
emailAddress required | string |
{- "emailAddress": "string"
}
{- "error": "string",
- "validationSuccessful": true,
- "details": {
- "code": "duplicate",
- "field": "username",
- "message": "Ce nom d'usager existe déjà"
}
}
Check the password against password rules.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
password required | string |
{- "password": "string"
}
{- "error": "string",
- "validationSuccessful": true,
- "details": {
- "code": "duplicate",
- "field": "username",
- "message": "Ce nom d'usager existe déjà"
}
}
Generate a string random password. The password generated is not used for the account automatically. This is useful when generating accounts as an administrator and to provide a strong suggested password to the user.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "password": "XKRBK0DpPlWR5UElD6w"
}
Validate username, email address, Membership ID, password, or any combination of these, in a single call.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
username | string |
password | string |
emailAddress | string |
membershipId | string |
{- "username": "string",
- "password": "string",
- "emailAddress": "string",
- "membershipId": "string"
}
{- "validationSuccessful": false,
- "details": {
- "username": {
- "code": "duplicate",
- "field": "username",
- "message": "Ce nom d'utilisateur existe"
}
}
}
List memberships that can be chosen for the account. The memberships listed are only those that are configured as "may be self-purchased" and that have no cost. We will support purchasing memberships via the API in the future.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 43,
- "name": "Regular",
- "description": "Free membership that allows <b>borrowing</b> items"
}
]
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 445,
- "title": "Terms and Conditions"
}
]
id required | integer |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "id": 632,
- "title": "Terms and Conditions",
- "text": "string"
}
Creates the user, and logs the user in. The parameters listed as required (below) are always required; other parameters are required if /api/v1.1/registration/fields says they are required. Additionally, any field returned by /api/v1.1/registration/fields is also accepted here, and may be required.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
lastName required | string User's last name |
firstName required | string User's first name |
title | string Dr, Mr, Ms, etc. |
organizationName | string |
department | string |
emailAddress required | string |
membershipId | string |
username required | string |
password required | string |
sex | string |
dateOfBirth | string |
address.street1 | string |
address.street2 | string |
address.city | string |
address.country | string The code for the user's country. Use /api/v1.1/countries endpoint to get the list of valid options. |
address.principalSubdivision | string The short code for the state or province and must be valid the for country. Use /api/v1.1/countries/$countryCode/principalSubdivisions for valid list. |
address.postalCode | string |
address.phone | string |
address.phone2 | string |
address.notes | string |
{- "lastName": "string",
- "firstName": "string",
- "title": "string",
- "organizationName": "string",
- "department": "string",
- "emailAddress": "string",
- "membershipId": "string",
- "username": "string",
- "password": "string",
- "sex": "string",
- "dateOfBirth": "string",
- "address.street1": "string",
- "address.street2": "string",
- "address.city": "string",
- "address.country": "CAN",
- "address.principalSubdivision": "NY",
- "address.postalCode": "string",
- "address.phone": "string",
- "address.phone2": "string",
- "address.notes": "string"
}
{- "username": "string",
- "lastName": "string",
- "firstName": "string",
- "displayName": "string",
- "emailAddress": "string",
- "expires_in": 0,
- "token_type": "Bearer",
- "access_token": "string",
- "roles": [
- "string"
], - "isAdmin": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true
}, - "organizations": [
- {
- "id": "string",
- "apiUrl": "string",
- "name": "string",
- "logo": "string",
- "selfServeEnabled": true,
- "membership": {
- "name": "string",
- "mayBorrow": true,
- "mayUseKiosk": true,
- "mayBorrowMax": 0,
- "expiration": "string",
- "isExpired": true
}
}
]
}
Lists all the fields the organization has configured to be requested or required for users to sign up during the registration process.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": "lastName",
- "label": "Last Name",
- "type": "string",
- "required": true,
- "options": [
- "string"
]
}
]
Check the username against username rules, and make sure the name is available. Usernames are unique across all myTurn sites.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
username required | string |
{- "username": "string"
}
{- "error": "string",
- "validationSuccessful": true,
- "details": {
- "code": "duplicate",
- "field": "username",
- "message": "Ce nom d'usager existe déjà"
}
}
Try various way of mixing last name, first name and desired username, and add digits if necessary to find a unique username. Suggests up to 3 options.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
lastName | string |
firstName | string |
username | string |
{- "lastName": "Tables",
- "firstName": "Bobby",
- "username": "littleBobbytables"
}
{- "usernames": [
- "btables23"
]
}
Check to make sure the membership ID is not already taken by another user at this organization.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
membershipId required | string |
{- "membershipId": "string"
}
{- "error": "string",
- "validationSuccessful": true,
- "details": {
- "code": "duplicate",
- "field": "username",
- "message": "Ce nom d'usager existe déjà"
}
}
Make sure the email address is not already taken by another user at this organization, and that the email address is well formed.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
emailAddress required | string |
{- "emailAddress": "string"
}
{- "error": "string",
- "validationSuccessful": true,
- "details": {
- "code": "duplicate",
- "field": "username",
- "message": "Ce nom d'usager existe déjà"
}
}
Check the password against password rules.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
password required | string |
{- "password": "string"
}
{- "error": "string",
- "validationSuccessful": true,
- "details": {
- "code": "duplicate",
- "field": "username",
- "message": "Ce nom d'usager existe déjà"
}
}
Generate a string random password. The password generated is not used for the account automatically. This is useful when generating accounts as an administrator and to provide a strong suggested password to the user.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "password": "XKRBK0DpPlWR5UElD6w"
}
Validate username, email address, Membership ID, password, or any combination of these, in a single call.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
username | string |
password | string |
emailAddress | string |
membershipId | string |
{- "username": "string",
- "password": "string",
- "emailAddress": "string",
- "membershipId": "string"
}
{- "validationSuccessful": false,
- "details": {
- "username": {
- "code": "duplicate",
- "field": "username",
- "message": "Ce nom d'utilisateur existe"
}
}
}
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 445,
- "title": "Terms and Conditions"
}
]
id required | integer |
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
{- "id": 632,
- "title": "Terms and Conditions",
- "text": "string"
}
List memberships that can be chosen for the account. The memberships listed are only those that are configured as "may be self-purchased" and that have no cost. We will support purchasing memberships via the API in the future.
Accept-Language | string Locale requested, per RFC 3282. However, myTurn will only use the language portion of the locale requested, and apply the organization's country. You are welcome to send only the two letter language code. |
[- {
- "id": 43,
- "name": "Regular",
- "description": "Free membership that allows <b>borrowing</b> items"
}
]