POST api/Account/Logon2

Logon using either eMail address and password or activity and security number

Exceptions

ExceptionCondition
UnauthorizedHttpResponseException

Request Information

URI Parameters

None.

Body Parameters

user name and password

UserPasswordArgumentModel
NameDescriptionTypeAdditional information
UserName

Get or set user name

string

None.

Password

Get or set password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Password": "sample string 2"
}

application/xml, text/xml

Sample:
<UserPasswordArgumentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rostov.Models">
  <Password>sample string 2</Password>
  <UserName>sample string 1</UserName>
</UserPasswordArgumentModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserPasswordArgumentModel'.

Response Information

Resource Description

A UserModel including a valid ticket if user/activity exist and password/security code is correct, otherwise you will get an UnauthorizedHttpResponseException()

UserModel
NameDescriptionTypeAdditional information
TicketId

Gets or sets the ticket id. This value is set when user logs on

string

None.

TicketExpirationDate

Gets or sets the ticket expiration date

date

None.

LogonId

Gets or set the logon id

string

None.

DisplayName

Gets or sets the user diaply name

string

None.

SecurityRoles

Gets or sets security roles

Collection of string

None.

CombinedActivityId

If user is SingleActivityUser this property will get the only activity this user can access. This field is only set for SingleActivityUser

string

None.

UserType

Gets or sets the user type, for example PartnerUser, SubContractorUser and so on.

string

None.

UserFields

Gets or sets a list of user updates

Collection of AttributeUpdateModel

None.

DefaultDatabase

Gets or sets default database

string

None.

AvailableDatabases

Gets or sets a list of available databases

Collection of string

None.

SearchableContracts

Gets or sets any contract restrictions set on user when searching for activities. If not set user have no restrictions related to contract and activity search.

Collection of ContractModel

Json null value handling: Ignore

AvailableContracts

Gets or sets any contract restrictions set on user when searching for equipment. If not set user have no restrictions related to creating activities

Collection of ContractModel

Json null value handling: Ignore

AvailableStocks

Gets or sets available stocks

Collection of StockItem

None.

AvailableStockContracts

Gets or sets any stock contract restrictions for partner users.

Collection of ContractModel

None.

MustChangePassword

Gets or sets MustChangePassword

boolean

None.

SearchableBrands

Get or set brand restriction when searching for parts

Collection of string

Json null value handling: Ignore

AvailableBrands

Gets or sets brand restriction when creating activities

Collection of string

Json null value handling: Ignore

AvailableReports

Gets or sets available PowerBI reports

Collection of BIReportModel

Json null value handling: Ignore

DatabaseLogisticConfiguration

Collection of DatabaseItem

Json null value handling: Ignore

CombinedPerformanceId

Gets or sets the performance id. If performance monitoring is not turned on this property will not be present or set to null

string

Json null value handling: Ignore

Response Formats

application/json, text/json

Sample:

Sample not available.