POST api/UserType/SaveUserType

API to save (insert or update) a user type.

Request Information

URI Parameters

None.

Body Parameters

UserTypeSaveRequestModel with user type data.

UserTypeSaveRequestModel
NameDescriptionTypeAdditional information
UserTypeID

integer

None.

Name

string

None.

IsSystemDefined

boolean

None.

IsVisible

boolean

None.

IsActive

integer

None.

IsDeleted

integer

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "userTypeID": 1,
  "name": "sample string 1",
  "isSystemDefined": true,
  "isVisible": true,
  "isActive": 1,
  "isDeleted": 1
}

application/xml, text/xml

Sample:
<UserTypeSaveRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.RequestModel.UserType">
  <IsActive>1</IsActive>
  <IsDeleted>1</IsDeleted>
  <IsSystemDefined>true</IsSystemDefined>
  <IsVisible>true</IsVisible>
  <Name>sample string 1</Name>
  <UserTypeID>1</UserTypeID>
</UserTypeSaveRequestModel>

multipart/form-data

Sample:
<UserTypeSaveRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.RequestModel.UserType"><IsActive>1</IsActive><IsDeleted>1</IsDeleted><IsSystemDefined>true</IsSystemDefined><IsVisible>true</IsVisible><Name>sample string 1</Name><UserTypeID>1</UserTypeID></UserTypeSaveRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UserTypeSaveResponseModel

UserTypeSaveResponseModel
NameDescriptionTypeAdditional information
ReturnID

integer

None.

Message

string

None.

Successful

boolean

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true
}

application/xml, text/xml

Sample:
<UserTypeSaveResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.UserType">
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
</UserTypeSaveResponseModel>

multipart/form-data

Sample:
<UserTypeSaveResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArrowCMMS.Core.DataModel.UserType"><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful></UserTypeSaveResponseModel>