Skip to content

api_client.api.AccountApi

Load the API package

import 'package:api_client/api.dart';

All URIs are relative to https://localhost

Method HTTP request Description
activateAccountWithPassword POST /api/Account/activateAccountWithPassword
confirmEmail POST /api/Account/confirmEmail
createCompanySubdomain POST /api/Account/company/subdomain/{id}
createPermission POST /api/Account/permissions
createRole POST /api/Account/roles
deleteCompany DELETE /api/Account/companies/{id}
deletePermission DELETE /api/Account/permissions/{id}
deleteRole DELETE /api/Account/roles/{id}
deleteUser DELETE /api/Account/users/{id}
forgotPassword POST /api/Account/forgotPassword
getAllPermissions GET /api/Account/permissions
getCompanies POST /api/Account/companies
getCompany GET /api/Account/company
getCompanyById GET /api/Account/company/{id}
getCurrentUser GET /api/Account/users/me
getRoleById GET /api/Account/roles/{id}
getRoleByName GET /api/Account/roles/name/{name}
getRoles GET /api/Account/roles
getRolesEditable GET /api/Account/roles/editable
getRolesEditablePaging GET /api/Account/roles/editable/{page}/{pageSize}
getRoles_0 GET /api/Account/roles/{page}/{pageSize}
getUserById GET /api/Account/users/{id}
getUserByUserName GET /api/Account/users/username/{userName}
getUsers GET /api/Account/users
getUsersByCurrentCompany GET /api/Account/users/company
getUsersByCurrentCompany_0 GET /api/Account/users/company/{page}/{pageSize}
getUsers_0 GET /api/Account/users/{page}/{pageSize}/{companyId}
register POST /api/Account/users
registerCompany POST /api/Account/registerCompany
registerUserForCurrentCompany POST /api/Account/users/company
resendAccountActivationEmail POST /api/Account/resendAccountActivationEmail
resetPassword POST /api/Account/resetPassword
unblockUser PUT /api/Account/users/unblock/{id}
updateCompany POST /api/Account/company
updateCurrentUser PUT /api/Account/users/me
updateCurrentUser_0 PATCH /api/Account/users/me
updatePermission PUT /api/Account/permissions/{id}
updateRole PUT /api/Account/roles/{id}
updateUser PUT /api/Account/users/{id}
updateUser_0 PATCH /api/Account/users/{id}
userPreferences GET /api/Account/users/me/preferences
userPreferences_0 PUT /api/Account/users/me/preferences

activateAccountWithPassword

activateAccountWithPassword(model)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var model = new ResetPasswordViewModel(); // ResetPasswordViewModel | 

try { 
    api_instance.activateAccountWithPassword(model);
} catch (e) {
    print("Exception when calling AccountApi->activateAccountWithPassword: $e\n");
}

Parameters

Name Type Description Notes
model ResetPasswordViewModel [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

confirmEmail

confirmEmail(model)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var model = new ConfirmEmailViewModel(); // ConfirmEmailViewModel | 

try { 
    api_instance.confirmEmail(model);
} catch (e) {
    print("Exception when calling AccountApi->confirmEmail: $e\n");
}

Parameters

Name Type Description Notes
model ConfirmEmailViewModel [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

createCompanySubdomain

CompanyServiceModel createCompanySubdomain(id)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 

try { 
    var result = api_instance.createCompanySubdomain(id);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->createCompanySubdomain: $e\n");
}

Parameters

Name Type Description Notes
id String

Return type

CompanyServiceModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

createPermission

PermissionViewModel createPermission(model)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var model = new PermissionViewModel(); // PermissionViewModel | 

try { 
    var result = api_instance.createPermission(model);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->createPermission: $e\n");
}

Parameters

Name Type Description Notes
model PermissionViewModel [optional]

Return type

PermissionViewModel

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

createRole

createRole(role)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var role = new RoleViewModel(); // RoleViewModel | 

try { 
    api_instance.createRole(role);
} catch (e) {
    print("Exception when calling AccountApi->createRole: $e\n");
}

Parameters

Name Type Description Notes
role RoleViewModel [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteCompany

CompanyServiceModel deleteCompany(id)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 

try { 
    var result = api_instance.deleteCompany(id);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->deleteCompany: $e\n");
}

Parameters

Name Type Description Notes
id String

Return type

CompanyServiceModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deletePermission

PermissionViewModel deletePermission(id)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 

try { 
    var result = api_instance.deletePermission(id);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->deletePermission: $e\n");
}

Parameters

Name Type Description Notes
id String

Return type

PermissionViewModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteRole

RoleViewModel deleteRole(id)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 

try { 
    var result = api_instance.deleteRole(id);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->deleteRole: $e\n");
}

Parameters

Name Type Description Notes
id String

Return type

RoleViewModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deleteUser

UserViewModel deleteUser(id)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 

try { 
    var result = api_instance.deleteUser(id);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->deleteUser: $e\n");
}

Parameters

Name Type Description Notes
id String

Return type

UserViewModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

forgotPassword

forgotPassword(model)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var model = new ForgotPasswordViewModel(); // ForgotPasswordViewModel | 

try { 
    api_instance.forgotPassword(model);
} catch (e) {
    print("Exception when calling AccountApi->forgotPassword: $e\n");
}

Parameters

Name Type Description Notes
model ForgotPasswordViewModel [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getAllPermissions

List getAllPermissions()

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();

try { 
    var result = api_instance.getAllPermissions();
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getAllPermissions: $e\n");
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getCompanies

QueryResultCompanyServiceModel getCompanies(query)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var query = new Query(); // Query | 

try { 
    var result = api_instance.getCompanies(query);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getCompanies: $e\n");
}

Parameters

Name Type Description Notes
query Query [optional]

Return type

QueryResultCompanyServiceModel

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getCompany

CompanyServiceModel getCompany()

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();

try { 
    var result = api_instance.getCompany();
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getCompany: $e\n");
}

Parameters

This endpoint does not need any parameter.

Return type

CompanyServiceModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getCompanyById

CompanyViewModel getCompanyById(id)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 

try { 
    var result = api_instance.getCompanyById(id);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getCompanyById: $e\n");
}

Parameters

Name Type Description Notes
id String

Return type

CompanyViewModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getCurrentUser

UserViewModel getCurrentUser()

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();

try { 
    var result = api_instance.getCurrentUser();
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getCurrentUser: $e\n");
}

Parameters

This endpoint does not need any parameter.

Return type

UserViewModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getRoleById

RoleViewModel getRoleById(id)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 

try { 
    var result = api_instance.getRoleById(id);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getRoleById: $e\n");
}

Parameters

Name Type Description Notes
id String

Return type

RoleViewModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getRoleByName

RoleViewModel getRoleByName(name)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var name = name_example; // String | 

try { 
    var result = api_instance.getRoleByName(name);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getRoleByName: $e\n");
}

Parameters

Name Type Description Notes
name String

Return type

RoleViewModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getRoles

List getRoles()

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();

try { 
    var result = api_instance.getRoles();
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getRoles: $e\n");
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getRolesEditable

List getRolesEditable()

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();

try { 
    var result = api_instance.getRolesEditable();
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getRolesEditable: $e\n");
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getRolesEditablePaging

List getRolesEditablePaging(page, pageSize)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var page = 56; // int | 
var pageSize = 56; // int | 

try { 
    var result = api_instance.getRolesEditablePaging(page, pageSize);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getRolesEditablePaging: $e\n");
}

Parameters

Name Type Description Notes
page int
pageSize int

Return type

List

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getRoles_0

List getRoles_0(page, pageSize, onlyEditableRoles)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var page = 56; // int | 
var pageSize = 56; // int | 
var onlyEditableRoles = true; // bool | 

try { 
    var result = api_instance.getRoles_0(page, pageSize, onlyEditableRoles);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getRoles_0: $e\n");
}

Parameters

Name Type Description Notes
page int
pageSize int
onlyEditableRoles bool [optional] [default to false]

Return type

List

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getUserById

UserViewModel getUserById(id)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 

try { 
    var result = api_instance.getUserById(id);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getUserById: $e\n");
}

Parameters

Name Type Description Notes
id String

Return type

UserViewModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getUserByUserName

UserViewModel getUserByUserName(userName)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var userName = userName_example; // String | 

try { 
    var result = api_instance.getUserByUserName(userName);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getUserByUserName: $e\n");
}

Parameters

Name Type Description Notes
userName String

Return type

UserViewModel

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getUsers

List getUsers()

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();

try { 
    var result = api_instance.getUsers();
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getUsers: $e\n");
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getUsersByCurrentCompany

List getUsersByCurrentCompany()

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();

try { 
    var result = api_instance.getUsersByCurrentCompany();
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getUsersByCurrentCompany: $e\n");
}

Parameters

This endpoint does not need any parameter.

Return type

List

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getUsersByCurrentCompany_0

List getUsersByCurrentCompany_0(page, pageSize)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var page = 56; // int | 
var pageSize = 56; // int | 

try { 
    var result = api_instance.getUsersByCurrentCompany_0(page, pageSize);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getUsersByCurrentCompany_0: $e\n");
}

Parameters

Name Type Description Notes
page int
pageSize int

Return type

List

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getUsers_0

List getUsers_0(page, pageSize, companyId)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var page = 56; // int | 
var pageSize = 56; // int | 
var companyId = companyId_example; // String | 

try { 
    var result = api_instance.getUsers_0(page, pageSize, companyId);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->getUsers_0: $e\n");
}

Parameters

Name Type Description Notes
page int
pageSize int
companyId String [optional]

Return type

List

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

register

register(user)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var user = new UserEditViewModel(); // UserEditViewModel | 

try { 
    api_instance.register(user);
} catch (e) {
    print("Exception when calling AccountApi->register: $e\n");
}

Parameters

Name Type Description Notes
user UserEditViewModel [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

registerCompany

registerCompany(registration)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var registration = new RegisterCompanyViewModel(); // RegisterCompanyViewModel | 

try { 
    api_instance.registerCompany(registration);
} catch (e) {
    print("Exception when calling AccountApi->registerCompany: $e\n");
}

Parameters

Name Type Description Notes
registration RegisterCompanyViewModel [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

registerUserForCurrentCompany

registerUserForCurrentCompany(user)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var user = new UserEditViewModel(); // UserEditViewModel | 

try { 
    api_instance.registerUserForCurrentCompany(user);
} catch (e) {
    print("Exception when calling AccountApi->registerUserForCurrentCompany: $e\n");
}

Parameters

Name Type Description Notes
user UserEditViewModel [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

resendAccountActivationEmail

resendAccountActivationEmail(email)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var email = email_example; // String | 

try { 
    api_instance.resendAccountActivationEmail(email);
} catch (e) {
    print("Exception when calling AccountApi->resendAccountActivationEmail: $e\n");
}

Parameters

Name Type Description Notes
email String [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

resetPassword

resetPassword(model)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var model = new ResetPasswordViewModel(); // ResetPasswordViewModel | 

try { 
    api_instance.resetPassword(model);
} catch (e) {
    print("Exception when calling AccountApi->resetPassword: $e\n");
}

Parameters

Name Type Description Notes
model ResetPasswordViewModel [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

unblockUser

unblockUser(id)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 

try { 
    api_instance.unblockUser(id);
} catch (e) {
    print("Exception when calling AccountApi->unblockUser: $e\n");
}

Parameters

Name Type Description Notes
id String

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateCompany

CompanyServiceModel updateCompany(model)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var model = new CompanyServiceModel(); // CompanyServiceModel | 

try { 
    var result = api_instance.updateCompany(model);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->updateCompany: $e\n");
}

Parameters

Name Type Description Notes
model CompanyServiceModel [optional]

Return type

CompanyServiceModel

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateCurrentUser

updateCurrentUser(user)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var user = new UserEditViewModel(); // UserEditViewModel | 

try { 
    api_instance.updateCurrentUser(user);
} catch (e) {
    print("Exception when calling AccountApi->updateCurrentUser: $e\n");
}

Parameters

Name Type Description Notes
user UserEditViewModel [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateCurrentUser_0

updateCurrentUser_0(patch)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var patch = [new List&lt;Operation&gt;()]; // List<Operation> | 

try { 
    api_instance.updateCurrentUser_0(patch);
} catch (e) {
    print("Exception when calling AccountApi->updateCurrentUser_0: $e\n");
}

Parameters

Name Type Description Notes
patch List<Operation> [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updatePermission

PermissionViewModel updatePermission(id, model)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 
var model = new PermissionViewModel(); // PermissionViewModel | 

try { 
    var result = api_instance.updatePermission(id, model);
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->updatePermission: $e\n");
}

Parameters

Name Type Description Notes
id String
model PermissionViewModel [optional]

Return type

PermissionViewModel

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateRole

updateRole(id, role)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 
var role = new RoleViewModel(); // RoleViewModel | 

try { 
    api_instance.updateRole(id, role);
} catch (e) {
    print("Exception when calling AccountApi->updateRole: $e\n");
}

Parameters

Name Type Description Notes
id String
role RoleViewModel [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateUser

updateUser(id, user)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 
var user = new UserEditViewModel(); // UserEditViewModel | 

try { 
    api_instance.updateUser(id, user);
} catch (e) {
    print("Exception when calling AccountApi->updateUser: $e\n");
}

Parameters

Name Type Description Notes
id String
user UserEditViewModel [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateUser_0

updateUser_0(id, patch)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var id = id_example; // String | 
var patch = [new List&lt;Operation&gt;()]; // List<Operation> | 

try { 
    api_instance.updateUser_0(id, patch);
} catch (e) {
    print("Exception when calling AccountApi->updateUser_0: $e\n");
}

Parameters

Name Type Description Notes
id String
patch List<Operation> [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

userPreferences

String userPreferences()

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();

try { 
    var result = api_instance.userPreferences();
    print(result);
} catch (e) {
    print("Exception when calling AccountApi->userPreferences: $e\n");
}

Parameters

This endpoint does not need any parameter.

Return type

String

Authorization

oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

userPreferences_0

userPreferences_0(data)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

var api_instance = new AccountApi();
var data = new String(); // String | 

try { 
    api_instance.userPreferences_0(data);
} catch (e) {
    print("Exception when calling AccountApi->userPreferences_0: $e\n");
}

Parameters

Name Type Description Notes
data String [optional]

Return type

void (empty response body)

Authorization

oauth2

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]


Last update: July 4, 2020