POST api/Employee/PostPersonUserDefinedField
Request Information
URI Parameters
None.
Body Parameters
UserDefinedFieldTransactionViewModelName | Description | Type | Additional information |
---|---|---|---|
ApplicablePersonID | integer |
None. |
|
ReferenceUDFID | integer |
None. |
|
Value | string |
None. |
|
UpdatedbyID | integer |
None. |
|
FieldTypeID | integer |
None. |
|
EmployeeID | integer |
None. |
|
UDFTransactionID | integer |
None. |
|
DateValue | date |
None. |
|
FieldName | string |
None. |
|
IsMandatory | boolean |
None. |
|
FieldTypeText | string |
None. |
|
DefaultValue | string |
None. |
|
checkedOption | Collection of integer |
None. |
|
Option | string |
None. |
|
UserDefinedList | Collection of UserDefinedViewModel |
None. |
|
UDFID | integer |
None. |
|
DisplayOrder | integer |
None. |
|
IsOptionavailable | boolean |
None. |
|
OptionList | Collection of UserDefinedFieldOptionViewModel |
None. |
|
nb | Object |
None. |
Request Formats
application/json, text/json
Sample:
{ "nb": {}, "ApplicablePersonID": 1, "ReferenceUDFID": 2, "Value": "sample string 3", "UpdatedbyID": 4, "FieldTypeID": 5, "EmployeeID": 6, "UDFTransactionID": 7, "DateValue": "2025-04-04T23:50:12.1906038+05:30", "FieldName": "sample string 9", "IsMandatory": true, "FieldTypeText": "sample string 11", "DefaultValue": "sample string 12", "checkedOption": [ 1, 2 ], "Option": "sample string 13", "UserDefinedList": [ { "ApplicablePersonID": 1, "Value": "sample string 2", "FieldTypeID": 3, "DateValue": "2025-04-04T23:50:12.1906038+05:30", "FieldName": "sample string 5", "Option": [ "sample string 1", "sample string 2" ], "ReferenceUDFID": 6 }, { "ApplicablePersonID": 1, "Value": "sample string 2", "FieldTypeID": 3, "DateValue": "2025-04-04T23:50:12.1906038+05:30", "FieldName": "sample string 5", "Option": [ "sample string 1", "sample string 2" ], "ReferenceUDFID": 6 } ], "UDFID": 14, "DisplayOrder": 1, "IsOptionavailable": true, "OptionList": [ { "UDFOptionID": 1, "UDFID": 2, "Option": "sample string 3", "DisplayOrder": 1, "IsOptionavailable": true, "DefaultValue": "sample string 5", "IsSelected": true }, { "UDFOptionID": 1, "UDFID": 2, "Option": "sample string 3", "DisplayOrder": 1, "IsOptionavailable": true, "DefaultValue": "sample string 5", "IsSelected": true } ] }
application/xml, text/xml
Sample:
<UserDefinedFieldTransactionViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HRMSWebAPI.Transaction.Employee"> <ApplicablePersonID>1</ApplicablePersonID> <DateValue>2025-04-04T23:50:12.1906038+05:30</DateValue> <DefaultValue>sample string 12</DefaultValue> <DisplayOrder>1</DisplayOrder> <EmployeeID>6</EmployeeID> <FieldName>sample string 9</FieldName> <FieldTypeID>5</FieldTypeID> <FieldTypeText>sample string 11</FieldTypeText> <IsMandatory>true</IsMandatory> <IsOptionavailable>true</IsOptionavailable> <Option>sample string 13</Option> <OptionList> <UserDefinedFieldOptionViewModel> <DefaultValue>sample string 5</DefaultValue> <DisplayOrder>1</DisplayOrder> <IsOptionavailable>true</IsOptionavailable> <IsSelected>true</IsSelected> <Option>sample string 3</Option> <UDFID>2</UDFID> <UDFOptionID>1</UDFOptionID> </UserDefinedFieldOptionViewModel> <UserDefinedFieldOptionViewModel> <DefaultValue>sample string 5</DefaultValue> <DisplayOrder>1</DisplayOrder> <IsOptionavailable>true</IsOptionavailable> <IsSelected>true</IsSelected> <Option>sample string 3</Option> <UDFID>2</UDFID> <UDFOptionID>1</UDFOptionID> </UserDefinedFieldOptionViewModel> </OptionList> <ReferenceUDFID>2</ReferenceUDFID> <UDFID>14</UDFID> <UDFTransactionID>7</UDFTransactionID> <UpdatedbyID>4</UpdatedbyID> <UserDefinedList> <UserDefinedViewModel> <ApplicablePersonID>1</ApplicablePersonID> <DateValue>2025-04-04T23:50:12.1906038+05:30</DateValue> <FieldName>sample string 5</FieldName> <FieldTypeID>3</FieldTypeID> <Option xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </Option> <ReferenceUDFID>6</ReferenceUDFID> <Value>sample string 2</Value> </UserDefinedViewModel> <UserDefinedViewModel> <ApplicablePersonID>1</ApplicablePersonID> <DateValue>2025-04-04T23:50:12.1906038+05:30</DateValue> <FieldName>sample string 5</FieldName> <FieldTypeID>3</FieldTypeID> <Option xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>sample string 1</d4p1:string> <d4p1:string>sample string 2</d4p1:string> </Option> <ReferenceUDFID>6</ReferenceUDFID> <Value>sample string 2</Value> </UserDefinedViewModel> </UserDefinedList> <Value>sample string 3</Value> <checkedOption xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> </checkedOption> <nb /> </UserDefinedFieldTransactionViewModel>
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.