POST api/Account/AllowLogon
Allow or deny user to logon into application.
Request Information
URI Parameters
None.
Body Parameters
AllowLogonPostName | Description | Type | Additional information |
---|---|---|---|
UserProviderKey |
User id |
string |
None. |
IsApproved |
If true the user can logon otherwise cannot |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "UserProviderKey": "f779787c-4e11-4e1b-825d-f0e9c3567c5b", "IsApproved": false }
application/xml, text/xml
Sample:
<AllowLogonPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts"> <IsApproved>false</IsApproved> <UserProviderKey>f779787c-4e11-4e1b-825d-f0e9c3567c5b</UserProviderKey> </AllowLogonPost>
Response Information
Resource Description
HttpStatusCode 200 OK or 400 BadRequest with Message.
IHttpActionResultNone.