PUT associations({associationId})/representatives({representativeId})/customfields({customFieldId})
Method to update a representative's custom fields
Request Information
Parameters
| Name | Description | Additional information |
|---|---|---|
| associationId | Association of interest |
Define this parameter in the request URI. |
| representativeId | Representative to update custom fields for |
Define this parameter in the request URI. |
| customFieldId | Field to update |
Define this parameter in the request URI. |
| data | New data for the custom field |
Define this parameter in the request body. |
Request body formats
application/json, text/json
Sample:
{
"NewValue": "sample string 1"
}
application/xml, text/xml
Sample:
<RepresentativeCustomFieldDataPP xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MicroNet.WebAPI.Models"> <NewValue>sample string 1</NewValue> </RepresentativeCustomFieldDataPP>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Updated data
Response body formats
application/json, text/json
Sample:
{
"RepresentativeId": 1,
"Value": "sample string 2",
"Name": "sample string 3",
"CustomFieldId": 4,
"DataType": "sample string 5",
"SelectItems": [
{
"Id": 1,
"Value": "sample string 2",
"Idx": 1,
"Deleted": true,
"Quantity": 3
},
{
"Id": 1,
"Value": "sample string 2",
"Idx": 1,
"Deleted": true,
"Quantity": 3
},
{
"Id": 1,
"Value": "sample string 2",
"Idx": 1,
"Deleted": true,
"Quantity": 3
}
],
"DataSize": 1,
"Deleted": true
}
application/xml, text/xml
Sample:
<RepresentativeCustomFieldResource xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MicroNet.WebAPI.Classes.Resources">
<CustomFieldId>4</CustomFieldId>
<DataSize>1</DataSize>
<DataType>sample string 5</DataType>
<Deleted>true</Deleted>
<Name>sample string 3</Name>
<RepresentativeId>1</RepresentativeId>
<SelectItems>
<CustomFieldSelectItemResource>
<Deleted>true</Deleted>
<Id>1</Id>
<Idx>1</Idx>
<Quantity>3</Quantity>
<Value>sample string 2</Value>
</CustomFieldSelectItemResource>
<CustomFieldSelectItemResource>
<Deleted>true</Deleted>
<Id>1</Id>
<Idx>1</Idx>
<Quantity>3</Quantity>
<Value>sample string 2</Value>
</CustomFieldSelectItemResource>
<CustomFieldSelectItemResource>
<Deleted>true</Deleted>
<Id>1</Id>
<Idx>1</Idx>
<Quantity>3</Quantity>
<Value>sample string 2</Value>
</CustomFieldSelectItemResource>
</SelectItems>
<Value>sample string 2</Value>
</RepresentativeCustomFieldResource>