User API
Stadium applications with Authentication mode Email & Password or Single Sign-on come with a REST API that can be used to remotely manage application users.
Setup
Calling the application User API requires a key. Generate this key in the Stadium Application Manager (SAM) under the application's User API section.

Here you can also download an Open API definition file. When importing this file into Stadium, Linx or a number of other applications, a Web Service will be generated with all available User API operations and types.

Operations
The API exposes the operations below
Replace the <api-key> placeholder in the URL's below with the key you generated for your application. Replace the <application-url> placeholder with the base url of your site (e.g. server.com/myapplication)
Fetch All Users
Returns a Json object containing all users. Use a querystring parameter "email" to filter the results by email.
URL
Method
Example Response (application/json)
NOTE: The data object is used in the Single Sign-On process by Stadium and is not available to API users.
Fetch User
Returns a Json object containing the details of a specific user
The UserID is generated by Stadium and can be retrieved using the Fetch User API call
URL
Method
Example Response (application/json)
NOTE: The data object is used in the Single Sign-On process by Stadium and is not available to API users.
Add User
Creates a new user record
URL
Method
Content Type
Body (example)
Example Response (application/json)
Update User
Updates an existing user record
The UserID is generated by Stadium and can be retrieved using the Fetch Users API call
URL
Method
Content Type
Body - all fields are optional (example)
Delete User
Deletes an existing user
The UserID is generated by Stadium and can be retrieved using the Fetch Users API call
URL
Method
Fetch Roles
Returns a Json object containing all available roles
URL
Method
Example Response (application/json)
Last updated
Was this helpful?