POST api/UpdateCompanyTrigger

Request Information

URI Parameters

None.

Body Parameters

SaveCompanyTriggerVM
NameDescriptionTypeAdditional information
Id

integer

None.

Code

string

None.

MasterTriggerId

integer

None.

HasEmail

boolean

None.

MailTemplateId

integer

None.

HasSms

boolean

None.

SmsTemplateId

integer

None.

HasWhatsapp

boolean

None.

WhatsappTemplateId

integer

None.

HasPush

boolean

None.

PushTemplateId

integer

None.

IsActive

boolean

None.

CompanyId

integer

None.

CreatedById

integer

None.

UpdatedById

integer

None.

CreatedDate

date

None.

UpdatedDate

date

None.

TriggerSubTypes

Collection of TriggerSubTypeVm

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Code": "sample string 2",
  "MasterTriggerId": 1,
  "HasEmail": true,
  "MailTemplateId": 1,
  "HasSms": true,
  "SmsTemplateId": 1,
  "HasWhatsapp": true,
  "WhatsappTemplateId": 1,
  "HasPush": true,
  "PushTemplateId": 1,
  "IsActive": true,
  "CompanyId": 1,
  "CreatedById": 1,
  "UpdatedById": 1,
  "CreatedDate": "2026-04-02T08:40:40.5942007Z",
  "UpdatedDate": "2026-04-02T08:40:40.5942007Z",
  "TriggerSubTypes": [
    {
      "Name": "sample string 1",
      "Code": "sample string 2",
      "MasterTrigger": {
        "Id": 1,
        "Name": "sample string 2",
        "Code": "sample string 3",
        "Module": "sample string 4",
        "IsCompanyTrigger": true,
        "IsDemoSubscription": true,
        "IsDeleted": true,
        "HasEmail": true,
        "MailTemplate_Id": 1,
        "HasSms": true,
        "SmsTemplate_Id": 1,
        "HasWhatsapp": true,
        "WhatsappTemplate_Id": 1,
        "HasPush": true,
        "PushTemplate_Id": 1,
        "TriggerSubTypes": []
      },
      "MasterTrigger_Id": 1,
      "CompanyTrigger_Id": 1,
      "HasEmail": true,
      "HasSms": true,
      "HasWhatsapp": true,
      "HasPush": true,
      "IsActive": true
    },
    {
      "Name": "sample string 1",
      "Code": "sample string 2",
      "MasterTrigger": {
        "Id": 1,
        "Name": "sample string 2",
        "Code": "sample string 3",
        "Module": "sample string 4",
        "IsCompanyTrigger": true,
        "IsDemoSubscription": true,
        "IsDeleted": true,
        "HasEmail": true,
        "MailTemplate_Id": 1,
        "HasSms": true,
        "SmsTemplate_Id": 1,
        "HasWhatsapp": true,
        "WhatsappTemplate_Id": 1,
        "HasPush": true,
        "PushTemplate_Id": 1,
        "TriggerSubTypes": []
      },
      "MasterTrigger_Id": 1,
      "CompanyTrigger_Id": 1,
      "HasEmail": true,
      "HasSms": true,
      "HasWhatsapp": true,
      "HasPush": true,
      "IsActive": true
    }
  ]
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'BrokerServer.Services.SuperAdmin.TriggerSubTypeVm' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'BrokerServer.Services.SuperAdmin.TriggerSubTypeVm' contains cycles and cannot be serialized if reference tracking is disabled.

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SaveCompanyTriggerVM'.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Description

string

None.

Data

Object

None.

Count

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Description": "sample string 3",
  "Data": {},
  "Count": 5
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models">
  <Count>5</Count>
  <Data />
  <Description>sample string 3</Description>
  <Message>sample string 2</Message>
  <Success>true</Success>
</Response>