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.

Profiles

Collection of Profile

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": "ff6ae331-e9f8-4dc7-8118-aafc67cd8c85",
  "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": "1afd6f8a-8496-4106-b2c7-cfad07ce4474",
  "Profiles": [
    {
      "ProfileId": "0e7a563e-f836-4f6e-8378-f6bd5ab8d076",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "Users": [],
      "AssetGroups": [
        {
          "AssetGroupId": "8ea7fda3-33bb-4354-836a-6a98181f01e3",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
          "MeasurementValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ac280b05-469f-498f-aec2-93f78f3b73e6",
          "CreateDate": "2021-04-17T06:36:57.939461-07:00",
          "CreateUser": "sample string 5",
          "CreateMachine": "sample string 6",
          "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
          "LastModifiedUser": "sample string 7",
          "LastModifiedMachine": "sample string 8"
        },
        {
          "AssetGroupId": "8ea7fda3-33bb-4354-836a-6a98181f01e3",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
          "MeasurementValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ac280b05-469f-498f-aec2-93f78f3b73e6",
          "CreateDate": "2021-04-17T06:36:57.939461-07:00",
          "CreateUser": "sample string 5",
          "CreateMachine": "sample string 6",
          "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
          "LastModifiedUser": "sample string 7",
          "LastModifiedMachine": "sample string 8"
        }
      ],
      "SourceSystemId": "sample string 3",
      "CompanyId": "bff916f4-801c-4b32-b7bc-dc6758d83154",
      "CreateDate": "2021-04-17T06:36:57.939461-07:00",
      "CreateUser": "sample string 5",
      "CreateMachine": "sample string 6",
      "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
      "LastModifiedUser": "sample string 7",
      "LastModifiedMachine": "sample string 8"
    },
    {
      "ProfileId": "0e7a563e-f836-4f6e-8378-f6bd5ab8d076",
      "Name": "sample string 1",
      "Description": "sample string 2",
      "Users": [],
      "AssetGroups": [
        {
          "AssetGroupId": "8ea7fda3-33bb-4354-836a-6a98181f01e3",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
          "MeasurementValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ac280b05-469f-498f-aec2-93f78f3b73e6",
          "CreateDate": "2021-04-17T06:36:57.939461-07:00",
          "CreateUser": "sample string 5",
          "CreateMachine": "sample string 6",
          "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
          "LastModifiedUser": "sample string 7",
          "LastModifiedMachine": "sample string 8"
        },
        {
          "AssetGroupId": "8ea7fda3-33bb-4354-836a-6a98181f01e3",
          "Name": "sample string 1",
          "Description": "sample string 2",
          "ParentGroup": null,
          "DisplayOrder": 1,
          "FormValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
          "MeasurementValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
          "SourceSystemId": "sample string 3",
          "CompanyId": "ac280b05-469f-498f-aec2-93f78f3b73e6",
          "CreateDate": "2021-04-17T06:36:57.939461-07:00",
          "CreateUser": "sample string 5",
          "CreateMachine": "sample string 6",
          "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
          "LastModifiedUser": "sample string 7",
          "LastModifiedMachine": "sample string 8"
        }
      ],
      "SourceSystemId": "sample string 3",
      "CompanyId": "bff916f4-801c-4b32-b7bc-dc6758d83154",
      "CreateDate": "2021-04-17T06:36:57.939461-07:00",
      "CreateUser": "sample string 5",
      "CreateMachine": "sample string 6",
      "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
      "LastModifiedUser": "sample string 7",
      "LastModifiedMachine": "sample string 8"
    }
  ]
}

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": "ea2a7526-ac2f-4173-a234-02b39d911af1",
    "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": "142afd32-0e96-41a7-97ef-843789b652d0",
    "Profiles": [
      {
        "ProfileId": "268f677f-142c-4d62-82bd-579298c70263",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "Users": [],
        "AssetGroups": [
          {
            "AssetGroupId": "c797a041-9aad-4872-86e7-8b666c07aa4d",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
            "MeasurementValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "99deaefb-6b36-4a7c-b550-4a2da427846d",
            "CreateDate": "2021-04-17T06:36:57.939461-07:00",
            "CreateUser": "sample string 5",
            "CreateMachine": "sample string 6",
            "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
            "LastModifiedUser": "sample string 7",
            "LastModifiedMachine": "sample string 8"
          },
          {
            "AssetGroupId": "c797a041-9aad-4872-86e7-8b666c07aa4d",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
            "MeasurementValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "99deaefb-6b36-4a7c-b550-4a2da427846d",
            "CreateDate": "2021-04-17T06:36:57.939461-07:00",
            "CreateUser": "sample string 5",
            "CreateMachine": "sample string 6",
            "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
            "LastModifiedUser": "sample string 7",
            "LastModifiedMachine": "sample string 8"
          }
        ],
        "SourceSystemId": "sample string 3",
        "CompanyId": "aa20aa56-0eb7-4335-9342-280112f3ef55",
        "CreateDate": "2021-04-17T06:36:57.939461-07:00",
        "CreateUser": "sample string 5",
        "CreateMachine": "sample string 6",
        "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
        "LastModifiedUser": "sample string 7",
        "LastModifiedMachine": "sample string 8"
      },
      {
        "ProfileId": "268f677f-142c-4d62-82bd-579298c70263",
        "Name": "sample string 1",
        "Description": "sample string 2",
        "Users": [],
        "AssetGroups": [
          {
            "AssetGroupId": "c797a041-9aad-4872-86e7-8b666c07aa4d",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
            "MeasurementValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "99deaefb-6b36-4a7c-b550-4a2da427846d",
            "CreateDate": "2021-04-17T06:36:57.939461-07:00",
            "CreateUser": "sample string 5",
            "CreateMachine": "sample string 6",
            "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
            "LastModifiedUser": "sample string 7",
            "LastModifiedMachine": "sample string 8"
          },
          {
            "AssetGroupId": "c797a041-9aad-4872-86e7-8b666c07aa4d",
            "Name": "sample string 1",
            "Description": "sample string 2",
            "ParentGroup": null,
            "DisplayOrder": 1,
            "FormValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
            "MeasurementValueNeededDate": "2021-04-17T06:36:57.939461-07:00",
            "SourceSystemId": "sample string 3",
            "CompanyId": "99deaefb-6b36-4a7c-b550-4a2da427846d",
            "CreateDate": "2021-04-17T06:36:57.939461-07:00",
            "CreateUser": "sample string 5",
            "CreateMachine": "sample string 6",
            "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
            "LastModifiedUser": "sample string 7",
            "LastModifiedMachine": "sample string 8"
          }
        ],
        "SourceSystemId": "sample string 3",
        "CompanyId": "aa20aa56-0eb7-4335-9342-280112f3ef55",
        "CreateDate": "2021-04-17T06:36:57.939461-07:00",
        "CreateUser": "sample string 5",
        "CreateMachine": "sample string 6",
        "LastModifiedDate": "2021-04-17T06:36:57.939461-07:00",
        "LastModifiedUser": "sample string 7",
        "LastModifiedMachine": "sample string 8"
      }
    ]
  },
  "Total": 1,
  "Message": "sample string 1"
}