POST Users

Creates a new user.

Request Information

URI Parameters

None.

Body Parameters

User to be created. UserId should not be filled in.

User
NameDescriptionTypeAdditional information
UserId

globally unique identifier

None.

UserName

string

None.

FullName

string

None.

PhoneNumber

string

None.

Email

string

None.

IsLockedOut

boolean

None.

IsApproved

boolean

None.

Role

Role

None.

CompanyId

globally unique identifier

None.

Teams

Collection of Team

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "0e45d772-6ccf-40e7-99a6-bf9423c59ddd",
  "UserName": "sample string 1",
  "FullName": "sample string 2",
  "PhoneNumber": "sample string 3",
  "Email": "sample string 4",
  "IsLockedOut": true,
  "IsApproved": true,
  "Role": {
    "Name": "sample string 1",
    "Description": "sample string 2"
  },
  "CompanyId": "221f819e-4692-4ac2-b8d8-e0b8623c992a",
  "Teams": [
    {
      "TeamId": "6052b2a5-2aad-4fd6-ab63-367f03e8027a",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "Users": [],
      "AssetGroups": [
        {
          "AssetGroupId": "818564ba-8332-4bab-836a-4e4e30104a1f",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
          "MeasurementValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ccf3396f-9755-4be8-acb7-35a86f529f3f",
          "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
          "LastModifiedUser": "sample string 6"
        },
        {
          "AssetGroupId": "818564ba-8332-4bab-836a-4e4e30104a1f",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
          "MeasurementValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ccf3396f-9755-4be8-acb7-35a86f529f3f",
          "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
          "LastModifiedUser": "sample string 6"
        }
      ],
      "SourceSystemId": "sample string 3",
      "CompanyId": "e18ab014-8d16-465b-941c-b16bf83ac993",
      "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
      "LastModifiedUser": "sample string 6"
    },
    {
      "TeamId": "6052b2a5-2aad-4fd6-ab63-367f03e8027a",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "Users": [],
      "AssetGroups": [
        {
          "AssetGroupId": "818564ba-8332-4bab-836a-4e4e30104a1f",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
          "MeasurementValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ccf3396f-9755-4be8-acb7-35a86f529f3f",
          "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
          "LastModifiedUser": "sample string 6"
        },
        {
          "AssetGroupId": "818564ba-8332-4bab-836a-4e4e30104a1f",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
          "MeasurementValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ccf3396f-9755-4be8-acb7-35a86f529f3f",
          "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
          "CreateUser": "sample string 5",
          "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
          "LastModifiedUser": "sample string 6"
        }
      ],
      "SourceSystemId": "sample string 3",
      "CompanyId": "e18ab014-8d16-465b-941c-b16bf83ac993",
      "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
      "CreateUser": "sample string 5",
      "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
      "LastModifiedUser": "sample string 6"
    }
  ]
}

Response Information

Resource Description

On success, the created user.

NameDescriptionTypeAdditional information
Data

User

None.

Total

integer

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": {
    "UserId": "92e6397f-c230-45ea-b841-0ba6e0b03a46",
    "UserName": "sample string 1",
    "FullName": "sample string 2",
    "PhoneNumber": "sample string 3",
    "Email": "sample string 4",
    "IsLockedOut": true,
    "IsApproved": true,
    "Role": {
      "Name": "sample string 1",
      "Description": "sample string 2"
    },
    "CompanyId": "6ab7517e-a9d8-484b-bf1d-7d07e3cfedbc",
    "Teams": [
      {
        "TeamId": "2cfaa615-1ab6-4f9c-8c09-6a323b970af5",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "Users": [],
        "AssetGroups": [
          {
            "AssetGroupId": "e4047917-3b1c-4300-9040-af4607355490",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
            "MeasurementValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "a1549e4b-80a0-4945-a60a-ea95f173f5c0",
            "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
            "LastModifiedUser": "sample string 6"
          },
          {
            "AssetGroupId": "e4047917-3b1c-4300-9040-af4607355490",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
            "MeasurementValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "a1549e4b-80a0-4945-a60a-ea95f173f5c0",
            "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
            "LastModifiedUser": "sample string 6"
          }
        ],
        "SourceSystemId": "sample string 3",
        "CompanyId": "84b95316-088e-42ed-b8ab-e63df2433dc1",
        "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
        "LastModifiedUser": "sample string 6"
      },
      {
        "TeamId": "2cfaa615-1ab6-4f9c-8c09-6a323b970af5",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "Users": [],
        "AssetGroups": [
          {
            "AssetGroupId": "e4047917-3b1c-4300-9040-af4607355490",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
            "MeasurementValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "a1549e4b-80a0-4945-a60a-ea95f173f5c0",
            "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
            "LastModifiedUser": "sample string 6"
          },
          {
            "AssetGroupId": "e4047917-3b1c-4300-9040-af4607355490",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
            "MeasurementValueNeededDate": "2024-11-21T05:29:45.7235058-08:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "a1549e4b-80a0-4945-a60a-ea95f173f5c0",
            "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
            "CreateUser": "sample string 5",
            "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
            "LastModifiedUser": "sample string 6"
          }
        ],
        "SourceSystemId": "sample string 3",
        "CompanyId": "84b95316-088e-42ed-b8ab-e63df2433dc1",
        "CreateDate": "2024-11-21T05:29:45.7235058-08:00",
        "CreateUser": "sample string 5",
        "LastModifiedDate": "2024-11-21T05:29:45.7235058-08:00",
        "LastModifiedUser": "sample string 6"
      }
    ]
  },
  "Total": 1,
  "Message": "sample string 1"
}