| PUT | /users_details/{Id} |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | path | long | Yes | |
| AppUserId | body | long | Yes | |
| Approved | body | bool | Yes | |
| IdentificationNumber | body | string | No | |
| PassportNumber | body | string | No | |
| Address | body | string | Yes | |
| Latitude | body | double | Yes | |
| Longitude | body | double | Yes | |
| Age | body | int | Yes | |
| EthnicGroup | body | string | Yes | |
| Gender | body | string | Yes | |
| IsDisabled | body | bool | Yes | |
| DocumentUrl | body | string | Yes | |
| ApplicationDate | body | DateTime | No | |
| ApprovalDate | body | DateTime | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | form | long | No | |
| AppUserId | form | long | No | |
| Approved | form | bool | No | |
| IdentificationNumber | form | string | No | |
| PassportNumber | form | string | No | |
| Address | form | string | No | |
| Latitude | form | double | No | |
| Longitude | form | double | No | |
| Age | form | int | No | |
| EthnicGroup | form | string | No | |
| Gender | form | string | No | |
| IsDisabled | form | bool | No | |
| DocumentUrl | form | string | No | |
| ApplicationDate | form | DateTime | No | |
| ApprovalDate | form | DateTime | No | |
| ResponseStatus | form | ResponseStatus | 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.
PUT /users_details/{Id} HTTP/1.1
Host: sfgboxapi.dev.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
appUserId: 0,
approved: False,
identificationNumber: String,
passportNumber: String,
address: String,
latitude: 0,
longitude: 0,
age: 0,
ethnicGroup: String,
gender: String,
isDisabled: False,
documentUrl: String,
applicationDate: 0001-01-01,
approvalDate: 0001-01-01
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
id: 0,
appUserId: 0,
approved: False,
identificationNumber: String,
passportNumber: String,
address: String,
latitude: 0,
longitude: 0,
age: 0,
ethnicGroup: String,
gender: String,
isDisabled: False,
documentUrl: String,
applicationDate: 0001-01-01,
approvalDate: 0001-01-01,
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}