POST api/Mail/AddOrEditFindQueryConditionBinder

SetMailNotifySetting

Request Information

URI Parameters

None.

Body Parameters

NotificationSubscriber value

FindQueryConditionBinder
NameDescriptionTypeAdditional information
Condition

FindQueryCondition

None.

ConditionFields

Collection of FindQueryField

None.

Request Formats

application/json, text/json

Sample:
{
  "Condition": {
    "ProjectID": 1,
    "QueryID": 2,
    "UserID": 3,
    "QueryName": "sample string 4",
    "IsEmailQuery": 1,
    "PriorityOrder": 1,
    "QueryFieldOrder": "sample string 5",
    "QueryFieldLogic": "sample string 6",
    "QueryCondition": "sample string 7"
  },
  "ConditionFields": [
    {
      "ProjectID": 1,
      "QueryID": 2,
      "UserID": 3,
      "FieldID": 4,
      "IfINorNOT": 1,
      "IntFieldEqual": 1,
      "IntFieldFrom": 1,
      "IntFieldTo": 1,
      "DateFieldFrom": "2024-07-20 09:25:14",
      "DateFieldTo": "2024-07-20 09:25:14",
      "DateFieldInDays": 1,
      "DateFieldInDaysOffset": 1,
      "TextFieldSelectionUcd": "sample string 5",
      "TextFieldSelection": "sample string 6"
    },
    {
      "ProjectID": 1,
      "QueryID": 2,
      "UserID": 3,
      "FieldID": 4,
      "IfINorNOT": 1,
      "IntFieldEqual": 1,
      "IntFieldFrom": 1,
      "IntFieldTo": 1,
      "DateFieldFrom": "2024-07-20 09:25:14",
      "DateFieldTo": "2024-07-20 09:25:14",
      "DateFieldInDays": 1,
      "DateFieldInDaysOffset": 1,
      "TextFieldSelectionUcd": "sample string 5",
      "TextFieldSelection": "sample string 6"
    }
  ]
}

application/xml, text/xml

Sample:
<FindQueryConditionBinder xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Logic.Admin">
  <Condition xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.DevTrackDB">
    <d2p1:IsEmailQuery>1</d2p1:IsEmailQuery>
    <d2p1:PriorityOrder>1</d2p1:PriorityOrder>
    <d2p1:ProjectID>1</d2p1:ProjectID>
    <d2p1:QueryCondition>sample string 7</d2p1:QueryCondition>
    <d2p1:QueryFieldLogic>sample string 6</d2p1:QueryFieldLogic>
    <d2p1:QueryFieldOrder>sample string 5</d2p1:QueryFieldOrder>
    <d2p1:QueryID>2</d2p1:QueryID>
    <d2p1:QueryName>sample string 4</d2p1:QueryName>
    <d2p1:UserID>3</d2p1:UserID>
  </Condition>
  <ConditionFields xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.DevTrackDB">
    <d2p1:FindQueryField>
      <d2p1:DateFieldFrom>2024-07-20T14:25:14.6530817-07:00</d2p1:DateFieldFrom>
      <d2p1:DateFieldInDays>1</d2p1:DateFieldInDays>
      <d2p1:DateFieldInDaysOffset>1</d2p1:DateFieldInDaysOffset>
      <d2p1:DateFieldTo>2024-07-20T14:25:14.6530817-07:00</d2p1:DateFieldTo>
      <d2p1:FieldID>4</d2p1:FieldID>
      <d2p1:IfINorNOT>1</d2p1:IfINorNOT>
      <d2p1:IntFieldEqual>1</d2p1:IntFieldEqual>
      <d2p1:IntFieldFrom>1</d2p1:IntFieldFrom>
      <d2p1:IntFieldTo>1</d2p1:IntFieldTo>
      <d2p1:ProjectID>1</d2p1:ProjectID>
      <d2p1:QueryID>2</d2p1:QueryID>
      <d2p1:TextFieldSelection>sample string 6</d2p1:TextFieldSelection>
      <d2p1:TextFieldSelectionUcd>sample string 5</d2p1:TextFieldSelectionUcd>
      <d2p1:UserID>3</d2p1:UserID>
    </d2p1:FindQueryField>
    <d2p1:FindQueryField>
      <d2p1:DateFieldFrom>2024-07-20T14:25:14.6530817-07:00</d2p1:DateFieldFrom>
      <d2p1:DateFieldInDays>1</d2p1:DateFieldInDays>
      <d2p1:DateFieldInDaysOffset>1</d2p1:DateFieldInDaysOffset>
      <d2p1:DateFieldTo>2024-07-20T14:25:14.6530817-07:00</d2p1:DateFieldTo>
      <d2p1:FieldID>4</d2p1:FieldID>
      <d2p1:IfINorNOT>1</d2p1:IfINorNOT>
      <d2p1:IntFieldEqual>1</d2p1:IntFieldEqual>
      <d2p1:IntFieldFrom>1</d2p1:IntFieldFrom>
      <d2p1:IntFieldTo>1</d2p1:IntFieldTo>
      <d2p1:ProjectID>1</d2p1:ProjectID>
      <d2p1:QueryID>2</d2p1:QueryID>
      <d2p1:TextFieldSelection>sample string 6</d2p1:TextFieldSelection>
      <d2p1:TextFieldSelectionUcd>sample string 5</d2p1:TextFieldSelectionUcd>
      <d2p1:UserID>3</d2p1:UserID>
    </d2p1:FindQueryField>
  </ConditionFields>
</FindQueryConditionBinder>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

SetMailNotifySetting

API_Data_Int32
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": 2
}

application/xml, text/xml

Sample:
<API_Data_int xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data>2</Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_int>