POST api/modifyuser

Modify an existing user in Spinternet

Request Information

URI Parameters

None.

Body Parameters

User
NameDescriptionTypeAdditional information
ID

Unique user identifier

integer

None.

DateCreated

Date user record was created

date

None.

DateModified

Date user record was last modified

date

None.

Username

User username

string

None.

FirstName

User first name

string

None.

LastName

User last name

string

None.

Active

User status

boolean

None.

LastLogin

Date user last logged into Spinternet

date

None.

AccountLocked

Is user account locked

boolean

None.

FailedLoginAttempts

Number of failed login attempts

integer

None.

Entitlement

user entitlement

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "DateCreated": "2024-09-19T15:15:37.1858358-05:00",
  "DateModified": "2024-09-19T15:15:37.1858358-05:00",
  "Username": "sample string 4",
  "FirstName": "sample string 5",
  "LastName": "sample string 6",
  "Active": true,
  "LastLogin": "2024-09-19T15:15:37.1858358-05:00",
  "AccountLocked": true,
  "FailedLoginAttempts": 10,
  "Entitlement": "sample string 11"
}

application/xml, text/xml

Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/fhlbi_api.API">
  <AccountLocked>true</AccountLocked>
  <Active>true</Active>
  <DateCreated>2024-09-19T15:15:37.1858358-05:00</DateCreated>
  <DateModified>2024-09-19T15:15:37.1858358-05:00</DateModified>
  <Entitlement>sample string 11</Entitlement>
  <FailedLoginAttempts>10</FailedLoginAttempts>
  <FirstName>sample string 5</FirstName>
  <ID>1</ID>
  <LastLogin>2024-09-19T15:15:37.1858358-05:00</LastLogin>
  <LastName>sample string 6</LastName>
  <Username>sample string 4</Username>
</User>

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

Response Information

Resource Description

JsonResponse
NameDescriptionTypeAdditional information
StatusCode

Http StatusCode of Response

HttpStatusCode

None.

Message

Message of the response

string

None.

Response Formats

application/json, text/json

Sample:
{
  "StatusCode": 100,
  "Message": "sample string 1"
}

application/xml, text/xml

Sample:
<JsonResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/fhlbi_api.API">
  <Message>sample string 1</Message>
  <StatusCode>Continue</StatusCode>
</JsonResponse>