POST api/createuser
Add a new user to Spinternet id value of body will be ignored - pass in 0 to create user
Request Information
URI Parameters
None.
Body Parameters
User| Name | Description | Type | Additional 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": "2025-12-05T23:30:02.0516437-06:00",
"DateModified": "2025-12-05T23:30:02.0516437-06:00",
"Username": "sample string 4",
"FirstName": "sample string 5",
"LastName": "sample string 6",
"Active": true,
"LastLogin": "2025-12-05T23:30:02.0516437-06: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>2025-12-05T23:30:02.0516437-06:00</DateCreated> <DateModified>2025-12-05T23:30:02.0516437-06:00</DateModified> <Entitlement>sample string 11</Entitlement> <FailedLoginAttempts>10</FailedLoginAttempts> <FirstName>sample string 5</FirstName> <ID>1</ID> <LastLogin>2025-12-05T23:30:02.0516437-06:00</LastLogin> <LastName>sample string 6</LastName> <Username>sample string 4</Username> </User>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
JsonResponse| Name | Description | Type | Additional 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>