POST api/Roles/Register

Request Information

URI Parameters

None.

Body Parameters

RegisterVm
NameDescriptionTypeAdditional information
Email

string

Required

NewPassword

string

Required

Data type: Password

String length: inclusive between 6 and 100

Role

string

None.

ConfirmPassword

string

Data type: Password

TenantId

globally unique identifier

None.

FirstName

string

Required

String length: inclusive between 0 and 100

LastName

string

Required

String length: inclusive between 0 and 100

DateCreated

date

Required

LastLoginTime

date

None.

Active

boolean

None.

CompanyUsers

Collection of CompanyUserVm

None.

Request Formats

application/json, text/json

Sample:
{
  "email": "sample string 1",
  "newPassword": "sample string 2",
  "role": "sample string 3",
  "confirmPassword": "sample string 4",
  "tenantId": "8fa08366-060b-4f47-be4e-d2a5930b0acc",
  "firstName": "sample string 6",
  "lastName": "sample string 7",
  "dateCreated": "2025-12-14T20:40:28.3748175+01:00",
  "lastLoginTime": "2025-12-14T20:40:28.3748175+01:00",
  "active": true,
  "companyUsers": [
    {
      "companyId": 1,
      "companyName": "sample string 2",
      "companyDisplayName": "sample string 3",
      "hasAccessTo": true
    },
    {
      "companyId": 1,
      "companyName": "sample string 2",
      "companyDisplayName": "sample string 3",
      "hasAccessTo": true
    }
  ]
}

application/xml, text/xml

Sample:
<RegisterVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Gruo.Core.ViewModels">
  <Active>true</Active>
  <CompanyUsers>
    <CompanyUserVm>
      <CompanyDisplayName>sample string 3</CompanyDisplayName>
      <CompanyId>1</CompanyId>
      <CompanyName>sample string 2</CompanyName>
      <HasAccessTo>true</HasAccessTo>
    </CompanyUserVm>
    <CompanyUserVm>
      <CompanyDisplayName>sample string 3</CompanyDisplayName>
      <CompanyId>1</CompanyId>
      <CompanyName>sample string 2</CompanyName>
      <HasAccessTo>true</HasAccessTo>
    </CompanyUserVm>
  </CompanyUsers>
  <ConfirmPassword>sample string 4</ConfirmPassword>
  <DateCreated>2025-12-14T20:40:28.3748175+01:00</DateCreated>
  <Email>sample string 1</Email>
  <FirstName>sample string 6</FirstName>
  <LastLoginTime>2025-12-14T20:40:28.3748175+01:00</LastLoginTime>
  <LastName>sample string 7</LastName>
  <NewPassword>sample string 2</NewPassword>
  <Role>sample string 3</Role>
  <TenantId>8fa08366-060b-4f47-be4e-d2a5930b0acc</TenantId>
</RegisterVm>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.