Required role: | SysAdmin |
POST | /users |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
User | body | ERPUserInfo | No | |
NewPassword | body | string | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
UserId | form | int | No | |
UserName | form | string | No | |
form | string | No | ||
Name | form | string | No | |
LastName | form | string | No | |
LastLoginAttempt | form | DateTime? | No | |
InvalidLoginAttempts | form | int | No | |
Blocked | form | bool | No | |
CreatedDate | form | DateTime | No | |
ModifiedDate | form | DateTime | No | |
LockedDate | form | DateTime? | No | |
PhoneNumber | form | string | No | |
BirthDate | form | DateTime? | No | |
Language | form | string | No | |
EmailConfirmed | form | bool | No | |
IsSysAdmin | form | bool | No | |
UserData | form | string | No | |
DisplayName | form | string | No | |
MaxSessionCount | form | int | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
ResponseStatus | form | ResponseStatus | No | |
Result | form | bool | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /users HTTP/1.1
Host: apex.nikoratrade.ge
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
User:
{
UserId: 0,
UserName: String,
Email: String,
Name: String,
LastName: String,
LastLoginAttempt: 0001-01-01,
InvalidLoginAttempts: 0,
Blocked: False,
CreatedDate: 0001-01-01,
ModifiedDate: 0001-01-01,
LockedDate: 0001-01-01,
PhoneNumber: String,
BirthDate: 0001-01-01,
Language: String,
EmailConfirmed: False,
IsSysAdmin: False,
UserData: String,
DisplayName: String,
MaxSessionCount: 0
},
NewPassword: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { ResponseStatus: { ErrorCode: String, Message: String, StackTrace: String, Errors: [ { ErrorCode: String, FieldName: String, Message: String, Meta: { String: String } } ], Meta: { String: String } }, Result: False }