POST api/userlog/SaveUserLogSettings

Request Information

URI Parameters

None.

Body Parameters

UserLogSettings
NameDescriptionTypeAdditional information
Role

DepartmentRole

None.

Department

Department

None.

UserName

string

None.

UserId

integer

None.

ClientId

globally unique identifier

None.

ClientName

string

None.

LoginsLast30Days

integer

None.

FirstLoginDate

date

None.

PropertyTypes

Collection of PropertyType

None.

UserLogSettingsPropertyTypes

Collection of UserLogSettingsPropertyType

None.

UserLogSettingsId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Role": {
    "DepartmentRoleId": 1,
    "RoleName": "sample string 2",
    "DepartmentId": 3
  },
  "Department": {
    "DepartmentId": 1,
    "DepartmentName": "sample string 2"
  },
  "UserName": "sample string 1",
  "UserId": 2,
  "ClientId": "57b742ad-f869-4e1a-bdfd-b73a950c26ca",
  "ClientName": "sample string 4",
  "LoginsLast30Days": 5,
  "FirstLoginDate": "2025-12-25T15:54:57.5810691+00:00",
  "PropertyTypes": [
    {
      "PropertyTypeId": 1,
      "PropertyTypeName": "sample string 2"
    },
    {
      "PropertyTypeId": 1,
      "PropertyTypeName": "sample string 2"
    }
  ],
  "UserLogSettingsPropertyTypes": [
    {
      "UserLogSettingsId": 1,
      "PropertyTypeId": 2
    },
    {
      "UserLogSettingsId": 1,
      "PropertyTypeId": 2
    }
  ],
  "UserLogSettingsId": 6
}

text/html

Sample:
{"Role":{"DepartmentRoleId":1,"RoleName":"sample string 2","DepartmentId":3},"Department":{"DepartmentId":1,"DepartmentName":"sample string 2"},"UserName":"sample string 1","UserId":2,"ClientId":"57b742ad-f869-4e1a-bdfd-b73a950c26ca","ClientName":"sample string 4","LoginsLast30Days":5,"FirstLoginDate":"2025-12-25T15:54:57.5810691+00:00","PropertyTypes":[{"PropertyTypeId":1,"PropertyTypeName":"sample string 2"},{"PropertyTypeId":1,"PropertyTypeName":"sample string 2"}],"UserLogSettingsPropertyTypes":[{"UserLogSettingsId":1,"PropertyTypeId":2},{"UserLogSettingsId":1,"PropertyTypeId":2}],"UserLogSettingsId":6}

application/xml, text/xml

Sample:
<UserLogSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KnowledgeBase.Logging.UserLogSettings">
  <ClientId>57b742ad-f869-4e1a-bdfd-b73a950c26ca</ClientId>
  <ClientName>sample string 4</ClientName>
  <Department>
    <DepartmentId>1</DepartmentId>
    <DepartmentName>sample string 2</DepartmentName>
  </Department>
  <FirstLoginDate>2025-12-25T15:54:57.5810691+00:00</FirstLoginDate>
  <LoginsLast30Days>5</LoginsLast30Days>
  <PropertyTypes>
    <PropertyType>
      <PropertyTypeId>1</PropertyTypeId>
      <PropertyTypeName>sample string 2</PropertyTypeName>
    </PropertyType>
    <PropertyType>
      <PropertyTypeId>1</PropertyTypeId>
      <PropertyTypeName>sample string 2</PropertyTypeName>
    </PropertyType>
  </PropertyTypes>
  <Role>
    <DepartmentId>3</DepartmentId>
    <DepartmentRoleId>1</DepartmentRoleId>
    <RoleName>sample string 2</RoleName>
  </Role>
  <UserId>2</UserId>
  <UserLogSettingsId>6</UserLogSettingsId>
  <UserLogSettingsPropertyTypes>
    <UserLogSettingsPropertyType>
      <PropertyTypeId>2</PropertyTypeId>
      <UserLogSettingsId>1</UserLogSettingsId>
    </UserLogSettingsPropertyType>
    <UserLogSettingsPropertyType>
      <PropertyTypeId>2</PropertyTypeId>
      <UserLogSettingsId>1</UserLogSettingsId>
    </UserLogSettingsPropertyType>
  </UserLogSettingsPropertyTypes>
  <UserName>sample string 1</UserName>
</UserLogSettings>

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

Response Information

Resource Description

None.