POST api/AssignmentRule/SaveAccountAssignmentRules

Request Information

URI Parameters

None.

Body Parameters

SaveAccountAssigmentRulesRequestViewModel
NameDescriptionTypeAdditional information
AccountId

string

None.

UserId

string

None.

AssigmentRules

Collection of AssigmentRulesRequestViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "AccountId": "sample string 1",
  "UserId": "sample string 2",
  "AssigmentRules": [
    {
      "AssignmentRuleId": "sample string 1",
      "ContactTypeId": "sample string 2",
      "ContactAssignmentType": "None",
      "UserIds": [
        "sample string 1",
        "sample string 2"
      ],
      "TeamId": "sample string 3"
    },
    {
      "AssignmentRuleId": "sample string 1",
      "ContactTypeId": "sample string 2",
      "ContactAssignmentType": "None",
      "UserIds": [
        "sample string 1",
        "sample string 2"
      ],
      "TeamId": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<SaveAccountAssigmentRulesRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MindMe.Business.Service.Services.RequestViewModels.AccountsAndUsers">
  <AccountId>sample string 1</AccountId>
  <AssigmentRules>
    <AssigmentRulesRequestViewModel>
      <AssignmentRuleId>sample string 1</AssignmentRuleId>
      <ContactAssignmentType>None</ContactAssignmentType>
      <ContactTypeId>sample string 2</ContactTypeId>
      <TeamId>sample string 3</TeamId>
      <UserIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </UserIds>
    </AssigmentRulesRequestViewModel>
    <AssigmentRulesRequestViewModel>
      <AssignmentRuleId>sample string 1</AssignmentRuleId>
      <ContactAssignmentType>None</ContactAssignmentType>
      <ContactTypeId>sample string 2</ContactTypeId>
      <TeamId>sample string 3</TeamId>
      <UserIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>sample string 1</d4p1:string>
        <d4p1:string>sample string 2</d4p1:string>
      </UserIds>
    </AssigmentRulesRequestViewModel>
  </AssigmentRules>
  <UserId>sample string 2</UserId>
</SaveAccountAssigmentRulesRequestViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.