All URIs are relative to https://app.matroid.com
| Method | HTTP request | Description |
|---|---|---|
| apiV1TestUsersPost | POST /api/v1/test_users | Create test user |
| apiV1TestUsersUserIdDelete | DELETE /api/v1/test_users/{userId} | Delete test user |
ApiV1TestUsersPost200Response apiV1TestUsersPost(firstName, lastName, email, password, detectorColumns, planName, opts)
Create test user
Creates a new user. Only accessible by administrators (on-prem).
import MatroidPublicApi from 'matroid_public_api';
let defaultClient = MatroidPublicApi.ApiClient.instance;
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new MatroidPublicApi.UsersApi();
let firstName = "firstName_example"; // String | User's first name
let lastName = "lastName_example"; // String | User's last name
let email = "email_example"; // String | User's email, must be unique
let password = "password_example"; // String | User's password
let detectorColumns = "detectorColumns_example"; // String | Comma separated list of detector columns to show on detector page
let planName = "planName_example"; // String | The user's initial plan
let opts = {
'concurrentTrainLimit': 56, // Number | Maximum number of detectors that can be trained simultaneously
'concurrentVideoLimit': 56, // Number | Maximum number of videos that can be processed simultaneously
'creditLimit': "creditLimit_example", // String | User credits
'canAccessStreamDetections': true, // Boolean | Whether the user can access the calendar page
'groupList': "groupList_example", // String | Comma separated list of groups the user will belong to
'enableEmail': true // Boolean | Whether email should be enabled for the user. Defaults to false
};
apiInstance.apiV1TestUsersPost(firstName, lastName, email, password, detectorColumns, planName, opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| firstName | String | User's first name | |
| lastName | String | User's last name | |
| String | User's email, must be unique | ||
| password | String | User's password | |
| detectorColumns | String | Comma separated list of detector columns to show on detector page | |
| planName | String | The user's initial plan | |
| concurrentTrainLimit | Number | Maximum number of detectors that can be trained simultaneously | [optional] |
| concurrentVideoLimit | Number | Maximum number of videos that can be processed simultaneously | [optional] |
| creditLimit | String | User credits | [optional] |
| canAccessStreamDetections | Boolean | Whether the user can access the calendar page | [optional] |
| groupList | String | Comma separated list of groups the user will belong to | [optional] |
| enableEmail | Boolean | Whether email should be enabled for the user. Defaults to false | [optional] |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
ApiV1TestUsersUserIdDelete200Response apiV1TestUsersUserIdDelete(userId)
Delete test user
Deletes a user and all associated data
import MatroidPublicApi from 'matroid_public_api';
let defaultClient = MatroidPublicApi.ApiClient.instance;
// Configure Bearer (JWT) access token for authorization: bearerAuth
let bearerAuth = defaultClient.authentications['bearerAuth'];
bearerAuth.accessToken = "YOUR ACCESS TOKEN"
let apiInstance = new MatroidPublicApi.UsersApi();
let userId = "userId_example"; // String | ID of the user to delete
apiInstance.apiV1TestUsersUserIdDelete(userId, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});| Name | Type | Description | Notes |
|---|---|---|---|
| userId | String | ID of the user to delete |
ApiV1TestUsersUserIdDelete200Response
- Content-Type: Not defined
- Accept: application/json