POST api/ticket/updaterule

Updates a rule

Request Information

URI Parameters

None.

Body Parameters

The old rule to update and the new rule

Collection of Rule
NameDescriptionTypeAdditional information
RuleId

integer

None.

CustomerId

string

None.

CustomerName

string

None.

ProjectId

string

None.

ProjectName

string

None.

ContactId

string

None.

ContactName

string

None.

ContactEmail

string

None.

InSummist

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "RuleId": 1,
    "CustomerId": "sample string 2",
    "CustomerName": "sample string 3",
    "ProjectId": "sample string 4",
    "ProjectName": "sample string 5",
    "ContactId": "sample string 6",
    "ContactName": "sample string 7",
    "ContactEmail": "sample string 8",
    "InSummist": true
  },
  {
    "RuleId": 1,
    "CustomerId": "sample string 2",
    "CustomerName": "sample string 3",
    "ProjectId": "sample string 4",
    "ProjectName": "sample string 5",
    "ContactId": "sample string 6",
    "ContactName": "sample string 7",
    "ContactEmail": "sample string 8",
    "InSummist": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfRule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccessLayer.Ticketing.Entities">
  <Rule>
    <ContactEmail>sample string 8</ContactEmail>
    <ContactId>sample string 6</ContactId>
    <ContactName>sample string 7</ContactName>
    <CustomerId>sample string 2</CustomerId>
    <CustomerName>sample string 3</CustomerName>
    <InSummist>true</InSummist>
    <ProjectId>sample string 4</ProjectId>
    <ProjectName>sample string 5</ProjectName>
    <RuleId>1</RuleId>
  </Rule>
  <Rule>
    <ContactEmail>sample string 8</ContactEmail>
    <ContactId>sample string 6</ContactId>
    <ContactName>sample string 7</ContactName>
    <CustomerId>sample string 2</CustomerId>
    <CustomerName>sample string 3</CustomerName>
    <InSummist>true</InSummist>
    <ProjectId>sample string 4</ProjectId>
    <ProjectName>sample string 5</ProjectName>
    <RuleId>1</RuleId>
  </Rule>
</ArrayOfRule>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Whether the action succeeded or not

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.