GET api/UserType/GetUserTypeByID?userTypeID={userTypeID}
API to get a user type by its ID.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| userTypeID |
The ID of the user type. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
UserTypeResponseModel
UserTypeResponseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserType | UserTypeDataModel |
None. |
|
| ReturnID | integer |
Required |
|
| Message | string |
Required |
|
| Successful | boolean |
Required |
|
| Code | integer |
None. |
|
| TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{
"userType": {
"userTypeID": 1,
"name": "sample string 2",
"isSystemDefined": true,
"isVisible": true,
"isActive": true,
"isDeleted": true,
"addedDate": "2026-02-25T15:50:16.9292526-05:00",
"addedBy": 1,
"modifiedDate": "2026-02-25T15:50:16.9292526-05:00",
"modifiedBy": 1
},
"returnID": 1,
"message": "sample string 2",
"successful": true,
"code": 4,
"totalRecord": 5
}
application/xml, text/xml
Sample:
<UserTypeResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.Code">
<Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code>
<Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message>
<ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID>
<Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful>
<TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord>
<UserType xmlns:d2p1="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.UserType">
<d2p1:AddedBy>1</d2p1:AddedBy>
<d2p1:AddedDate>2026-02-25T15:50:16.9292526-05:00</d2p1:AddedDate>
<d2p1:IsActive>true</d2p1:IsActive>
<d2p1:IsDeleted>true</d2p1:IsDeleted>
<d2p1:IsSystemDefined>true</d2p1:IsSystemDefined>
<d2p1:IsVisible>true</d2p1:IsVisible>
<d2p1:ModifiedBy>1</d2p1:ModifiedBy>
<d2p1:ModifiedDate>2026-02-25T15:50:16.9292526-05:00</d2p1:ModifiedDate>
<d2p1:Name>sample string 2</d2p1:Name>
<d2p1:UserTypeID>1</d2p1:UserTypeID>
</UserType>
</UserTypeResponseModel>
multipart/form-data
Sample:
<UserTypeResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.Code"><Code xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">4</Code><Message xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">sample string 2</Message><ReturnID xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">1</ReturnID><Successful xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">true</Successful><TotalRecord xmlns="http://schemas.datacontract.org/2004/07/Arrow.Core.DataModel">5</TotalRecord><UserType xmlns:d2p1="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.UserType"><d2p1:AddedBy>1</d2p1:AddedBy><d2p1:AddedDate>2026-02-25T15:50:16.9292526-05:00</d2p1:AddedDate><d2p1:IsActive>true</d2p1:IsActive><d2p1:IsDeleted>true</d2p1:IsDeleted><d2p1:IsSystemDefined>true</d2p1:IsSystemDefined><d2p1:IsVisible>true</d2p1:IsVisible><d2p1:ModifiedBy>1</d2p1:ModifiedBy><d2p1:ModifiedDate>2026-02-25T15:50:16.9292526-05:00</d2p1:ModifiedDate><d2p1:Name>sample string 2</d2p1:Name><d2p1:UserTypeID>1</d2p1:UserTypeID></UserType></UserTypeResponseModel>