POST api/rep/{RepDID}/Attribute?BCDID={BCDID}
This API method will allow you to update the Comp Statuses of a Representative through Comp Attributes.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
RepDID | string |
Required |
|
BCDID | integer |
Default value is 1 |
Body Parameters
Collection of RepCompAttributeValueViewModelName | Description | Type | Additional information |
---|---|---|---|
ID |
Unique ID for the compensation attribute. |
integer |
None. |
Description |
The description of the compensation attribute. |
string |
None. |
CompAttributeValueID |
Unique ID for the compensation attribute value. |
integer |
None. |
Value |
The value of the compensation attribute for the given rep. |
string |
None. |
DropdownValueLabel |
Only returned if the attribute is a Drop Down data type. This is the label of the stored value. |
string |
None. |
Start Period |
The starting period for the attribute being active for the given rep. |
string |
None. |
End Period |
The ending period for the attribute being active for the given rep. |
string |
None. |
Request Formats
application/xml, text/xml
Sample:
<ListOfRepCompAttributeValueViewModel> <RepCompAttributeValueViewModel> <ID>1</ID> <Attribute>sample string 2</Attribute> <CompAttributeValueID>3</CompAttributeValueID> <Value>sample string 4</Value> <DropdownValueLabel>sample string 5</DropdownValueLabel> <StartPeriod>sample string 6</StartPeriod> <EndPeriod>sample string 7</EndPeriod> </RepCompAttributeValueViewModel> <RepCompAttributeValueViewModel> <ID>1</ID> <Attribute>sample string 2</Attribute> <CompAttributeValueID>3</CompAttributeValueID> <Value>sample string 4</Value> <DropdownValueLabel>sample string 5</DropdownValueLabel> <StartPeriod>sample string 6</StartPeriod> <EndPeriod>sample string 7</EndPeriod> </RepCompAttributeValueViewModel> </ListOfRepCompAttributeValueViewModel>
application/json, text/json
Sample:
[ { "ID": 1, "Description": "sample string 2", "CompAttributeValueID": 3, "Value": "sample string 4", "DropdownValueLabel": "sample string 5", "Start Period": "sample string 6", "End Period": "sample string 7" }, { "ID": 1, "Description": "sample string 2", "CompAttributeValueID": 3, "Value": "sample string 4", "DropdownValueLabel": "sample string 5", "Start Period": "sample string 6", "End Period": "sample string 7" } ]
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |