PATCH api/company/{id}/primaryagent

This method allows a user to update details of a primary agent

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id The company ID integer

Required

Body Parameters

Primary agent and contact, and commission info

CompanyPrimaryAgentModify
NameDescriptionTypeAdditional information
AgentId Details of the primary agent integer

None.

AgentContactId Agent's contact detauks integer

None.

CommissionOn What the Agent is paid commission on integer

None.

CommissionRate The rate of commission decimal number

None.

CommissionPlan The ID of the commission plan assigned to this agent integer

None.

Request Formats

application/json, text/json

Sample:
{
  "AgentId": 1,
  "AgentContactId": 1,
  "CommissionOn": 1,
  "CommissionRate": 1.1,
  "CommissionPlan": 1
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.