DELETE Users
Deletes the given user. The user to delete cannot be in the Owner role. Also, the user making this request cannot delete their own account.
Request Information
URI Parameters
None.
Body Parameters
User to be deleted
UserName | Description | Type | Additional information |
---|---|---|---|
UserId | globally unique identifier |
None. |
|
UserName | string |
None. |
|
FullName | string |
None. |
|
PhoneNumber | string |
None. |
|
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": "e5483077-34db-4c04-99eb-da6a29e89a61", "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": "be6c0078-1cc5-4f49-a849-e096b27870bc", "Teams": [ { "TeamId": "9b3cad11-657f-4793-85ff-01a79e78a767", "Name": "sample string 1", "Description": "sample string 2", "Users": [], "AssetGroups": [ { "AssetGroupId": "f6381cec-a5af-46f3-9bea-ebd11d29b472", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T18:55:49.0758857-08:00", "MeasurementValueNeededDate": "2024-12-21T18:55:49.0758857-08:00", "SourceSystemId": "sample string 3", "CompanyId": "5f23d2bf-cb92-4bf2-9cf3-fcc916accb05", "CreateDate": "2024-12-21T18:55:49.0758857-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T18:55:49.0758857-08:00", "LastModifiedUser": "sample string 6" }, { "AssetGroupId": "f6381cec-a5af-46f3-9bea-ebd11d29b472", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T18:55:49.0758857-08:00", "MeasurementValueNeededDate": "2024-12-21T18:55:49.0758857-08:00", "SourceSystemId": "sample string 3", "CompanyId": "5f23d2bf-cb92-4bf2-9cf3-fcc916accb05", "CreateDate": "2024-12-21T18:55:49.0758857-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T18:55:49.0758857-08:00", "LastModifiedUser": "sample string 6" } ], "SourceSystemId": "sample string 3", "CompanyId": "df037990-ad65-4d67-abfb-fd303482bd57", "CreateDate": "2024-12-21T18:55:49.0758857-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T18:55:49.0758857-08:00", "LastModifiedUser": "sample string 6" }, { "TeamId": "9b3cad11-657f-4793-85ff-01a79e78a767", "Name": "sample string 1", "Description": "sample string 2", "Users": [], "AssetGroups": [ { "AssetGroupId": "f6381cec-a5af-46f3-9bea-ebd11d29b472", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T18:55:49.0758857-08:00", "MeasurementValueNeededDate": "2024-12-21T18:55:49.0758857-08:00", "SourceSystemId": "sample string 3", "CompanyId": "5f23d2bf-cb92-4bf2-9cf3-fcc916accb05", "CreateDate": "2024-12-21T18:55:49.0758857-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T18:55:49.0758857-08:00", "LastModifiedUser": "sample string 6" }, { "AssetGroupId": "f6381cec-a5af-46f3-9bea-ebd11d29b472", "Name": "sample string 1", "Description": "sample string 2", "ParentGroup": null, "DisplayOrder": 1, "FormValueNeededDate": "2024-12-21T18:55:49.0758857-08:00", "MeasurementValueNeededDate": "2024-12-21T18:55:49.0758857-08:00", "SourceSystemId": "sample string 3", "CompanyId": "5f23d2bf-cb92-4bf2-9cf3-fcc916accb05", "CreateDate": "2024-12-21T18:55:49.0758857-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T18:55:49.0758857-08:00", "LastModifiedUser": "sample string 6" } ], "SourceSystemId": "sample string 3", "CompanyId": "df037990-ad65-4d67-abfb-fd303482bd57", "CreateDate": "2024-12-21T18:55:49.0758857-08:00", "CreateUser": "sample string 5", "LastModifiedDate": "2024-12-21T18:55:49.0758857-08:00", "LastModifiedUser": "sample string 6" } ] }
Response Information
Resource Description
Name | Description | Type | Additional information |
---|---|---|---|
Data | Object |
None. |
|
Total | integer |
None. |
|
Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": {}, "Total": 1, "Message": "sample string 2" }