POST User/Lock

Request Information

URI Parameters

None.

Body Parameters

UserLockForm
NameDescriptionTypeAdditional information
reasonId

integer

None.

hours

integer

None.

wmid

string

None.

lockType

UserLockType

None.

Request Formats

application/json, text/json

Sample:
{
  "reasonId": 1,
  "hours": 1,
  "wmid": "sample string 1",
  "lockType": 0
}

Response Information

Resource Description

Collection of UserLockView
NameDescriptionTypeAdditional information
lockType

UserLockType

None.

byUser

UserPublicDataView

None.

Reason

UserLockReasonView

None.

dateCreated

string

None.

dateUnlock

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "lockType": 0,
    "byUser": {
      "attestat": "sample string 1",
      "attestatCode": 1,
      "bl": 1,
      "tl": 2,
      "cl": 1,
      "Gender": 0,
      "GenderStr": "female",
      "lastLoginDate": "sample string 3",
      "lastLoginDateUtc": "sample string 4",
      "lastOnlineDate": "sample string 5",
      "lastOnlineDateUtc": "sample string 6",
      "status": 0,
      "statusStr": "active",
      "interactOpportunity": true,
      "userType": 0,
      "cover": "sample string 8",
      "icon": {
        "id": "sample string 1",
        "isactive": true,
        "isDefault": true,
        "smallest": "sample string 4",
        "tiny": "sample string 5",
        "mini": "sample string 6",
        "small": "sample string 7",
        "normal": "sample string 8",
        "large": "sample string 9",
        "big": "sample string 10",
        "original": "sample string 11",
        "url": "sample string 12"
      },
      "nickname": "sample string 9",
      "wmid": "sample string 10"
    },
    "Reason": {
      "id": 1,
      "reason": "sample string 2"
    },
    "dateCreated": "sample string 1",
    "dateUnlock": "sample string 2"
  },
  {
    "lockType": 0,
    "byUser": {
      "attestat": "sample string 1",
      "attestatCode": 1,
      "bl": 1,
      "tl": 2,
      "cl": 1,
      "Gender": 0,
      "GenderStr": "female",
      "lastLoginDate": "sample string 3",
      "lastLoginDateUtc": "sample string 4",
      "lastOnlineDate": "sample string 5",
      "lastOnlineDateUtc": "sample string 6",
      "status": 0,
      "statusStr": "active",
      "interactOpportunity": true,
      "userType": 0,
      "cover": "sample string 8",
      "icon": {
        "id": "sample string 1",
        "isactive": true,
        "isDefault": true,
        "smallest": "sample string 4",
        "tiny": "sample string 5",
        "mini": "sample string 6",
        "small": "sample string 7",
        "normal": "sample string 8",
        "large": "sample string 9",
        "big": "sample string 10",
        "original": "sample string 11",
        "url": "sample string 12"
      },
      "nickname": "sample string 9",
      "wmid": "sample string 10"
    },
    "Reason": {
      "id": 1,
      "reason": "sample string 2"
    },
    "dateCreated": "sample string 1",
    "dateUnlock": "sample string 2"
  }
]