Saves a UserDefinedFieldRequest
| Name | Description | Additional information |
|---|---|---|
| request | The UserDefinedFieldRequest |
Define this parameter in the request body. |
{
"UserDefinedFieldId": 1,
"Description": "sample string 2",
"DisplayName": "sample string 3",
"Tooltip": "sample string 4",
"Mandatory": true,
"FieldType": 0,
"HyperlinkPath": "sample string 6",
"HyperlinkText": "sample string 7",
"Precision": 1,
"MaxLength": 1,
"Default": "sample string 8",
"ItemSpecific": true,
"AllowEmployeeToPopulate": true,
"TableId": "1e0a695c-27bf-4114-88d1-7c022f03d54e",
"Format": 0,
"AppliesToTableId": "74cf3a0f-75bf-45e2-9b3f-b153d5aa0e7a",
"MaxRows": 13,
"ListItems": [
{
"ElementValue": 1,
"ElementText": "sample string 2",
"ElementOrder": 3,
"Archived": true
},
{
"ElementValue": 1,
"ElementText": "sample string 2",
"ElementOrder": 3,
"Archived": true
},
{
"ElementValue": 1,
"ElementText": "sample string 2",
"ElementOrder": 3,
"Archived": true
}
],
"AllowSearch": true,
"Order": 15,
"Encrypted": true
}
<UserDefinedFieldRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Requests">
<AllowEmployeeToPopulate>true</AllowEmployeeToPopulate>
<AllowSearch>true</AllowSearch>
<AppliesToTableId>74cf3a0f-75bf-45e2-9b3f-b153d5aa0e7a</AppliesToTableId>
<Default>sample string 8</Default>
<Description>sample string 2</Description>
<DisplayName>sample string 3</DisplayName>
<Encrypted>true</Encrypted>
<FieldType>NotSet</FieldType>
<Format>NotSet</Format>
<HyperlinkPath>sample string 6</HyperlinkPath>
<HyperlinkText>sample string 7</HyperlinkText>
<ItemSpecific>true</ItemSpecific>
<ListItems xmlns:d2p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types">
<d2p1:UdfListElement>
<d2p1:Archived>true</d2p1:Archived>
<d2p1:ElementOrder>3</d2p1:ElementOrder>
<d2p1:ElementText>sample string 2</d2p1:ElementText>
<d2p1:ElementValue>1</d2p1:ElementValue>
</d2p1:UdfListElement>
<d2p1:UdfListElement>
<d2p1:Archived>true</d2p1:Archived>
<d2p1:ElementOrder>3</d2p1:ElementOrder>
<d2p1:ElementText>sample string 2</d2p1:ElementText>
<d2p1:ElementValue>1</d2p1:ElementValue>
</d2p1:UdfListElement>
<d2p1:UdfListElement>
<d2p1:Archived>true</d2p1:Archived>
<d2p1:ElementOrder>3</d2p1:ElementOrder>
<d2p1:ElementText>sample string 2</d2p1:ElementText>
<d2p1:ElementValue>1</d2p1:ElementValue>
</d2p1:UdfListElement>
</ListItems>
<Mandatory>true</Mandatory>
<MaxLength>1</MaxLength>
<MaxRows>13</MaxRows>
<Order>15</Order>
<Precision>1</Precision>
<TableId>1e0a695c-27bf-4114-88d1-7c022f03d54e</TableId>
<Tooltip>sample string 4</Tooltip>
<UserDefinedFieldId>1</UserDefinedFieldId>
</UserDefinedFieldRequest>
Sample not available.
{
"Item": {
"UserDefinedId": 0,
"AppliesTo": 0,
"Order": 0,
"Archived": false,
"DisplayName": "DisplayName",
"Description": "Description",
"Tooltip": "Tooltip",
"Mandatory": false,
"FieldType": 4,
"HyperlinkPath": null,
"HyperlinkText": null,
"Precision": null,
"MaxLength": null,
"Default": null,
"ListElements": null
},
"ResponseInformation": null
}
<UserDefinedFieldResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Responses">
<ResponseInformation i:nil="true" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common" />
<Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Types.Employees" xmlns="http://schemas.datacontract.org/2004/07/SpendManagementApi.Models.Common">
<d2p1:AppliesTo>Employees</d2p1:AppliesTo>
<d2p1:Archived>false</d2p1:Archived>
<d2p1:ListElements i:nil="true" />
<d2p1:Order>0</d2p1:Order>
<d2p1:UserDefinedId>0</d2p1:UserDefinedId>
</Item>
</UserDefinedFieldResponse>