POST api/accounts/login

Associate a login with an account.

Request Information

URI Parameters

None.

Body Parameters

AccountLogOnModel of the new external login with data of the external login provider, external identifier and api identifier.

AccountLogOnModel
NameDescriptionTypeAdditional information
LogOnProvider

Gets or sets the logOn provider name.

string

Required

ProviderKey

Gets or sets the provider key for user logOn.

string

Required

Data type: Password

String length: inclusive between 1 and 100

UserName

Gets or sets the application account username.

string

Required

Data type: Password

String length: inclusive between 1 and 100

Request Formats

application/json, text/json

Sample:
{
  "logOnProvider": "sample string 1",
  "providerKey": "sample string 2",
  "userName": "sample string 3"
}

application/xml, text/xml

Sample:
<AccountLogOnModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GtMotive.GtApi.DistributedServices.ApiRest.Models.Accounts">
  <LogOnProvider>sample string 1</LogOnProvider>
  <ProviderKey>sample string 2</ProviderKey>
  <UserName>sample string 3</UserName>
</AccountLogOnModel>

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 'AccountLogOnModel'.

Response Information

Resource Description

Json with information about the action.

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.