POST api/users

Adds a specific User. #NOTE: This endpoint is solely used (for now) to create an empty User. Use PutUserAsync instead, to actually finish creating the User with the appropriate values.



Request Information

URI Parameters

None.



Body Parameters

A model describing the User to add.

CreateUserViewModel
NameDescriptionTypeAdditional information
Email

string

None.

RoleId

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "Email": "sample string 1",
  "RoleId": "1a311d31-5e04-4716-9a07-649d6d86a921"
}

application/xml, text/xml

Sample:
<CreateUserViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VobeSoft.Models.ViewModels">
  <Email>sample string 1</Email>
  <RoleId>1a311d31-5e04-4716-9a07-649d6d86a921</RoleId>
</CreateUserViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.



Response Information

Resource Description

A ReadUserViewModel representing the added User.

ReadUserViewModel

NameDescriptionTypeAdditional information
CanBeModified

boolean

None.

Email

string

None.

IsPortalUser

boolean

None.

Permissions

Collection of UserPermissionViewModel

None.

PortalEntityInstanceId

integer

None.

RoleId

globally unique identifier

None.

RoleName

string

None.

UserGroupId

integer

None.

UserId

globally unique identifier

None.

UserName

string

None.