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": "4a341792-f080-4e51-a4c6-8fcf4be2e6b9", "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>4a341792-f080-4e51-a4c6-8fcf4be2e6b9</UserProviderKey> </AllowLogonPost>
Response Information
Resource Description
HttpStatusCode 200 OK or 400 BadRequest with Message.
IHttpActionResultNone.