PUT api/customer/automation/rule/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

RuleUpdateData
NameDescriptionTypeAdditional information
Name

string

None.

RulesAnd

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Name": "sample string 1",
  "RulesAnd": true
}

application/xml, text/xml

Sample:
<AutomationController.RuleUpdateData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saga.Kjorebok.Rest.Controllers">
  <Name>sample string 1</Name>
  <RulesAnd>true</RulesAnd>
</AutomationController.RuleUpdateData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AutomationRule
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

RulesAnd

boolean

None.

CreatedAt

date

None.

CreatedBy

integer

None.

CustomerId

integer

None.

CreatedByUser

UserInfo

None.

Conditions

Collection of AutomationCondition

None.

Actions

Collection of AutomationAction

None.

Scopes

Collection of AutomationScope

None.

Response Formats

application/json

Sample:

Sample not available.

text/json

Sample:

Sample not available.

application/xml, text/xml

Sample:
<AutomationRule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saga.Kjorebok.Backend.TripAutomation.Model">
  <Actions>
    <AutomationAction>
      <ActionType>6</ActionType>
      <Active>true</Active>
      <Description>sample string 4</Description>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <RuleId>1</RuleId>
      <Value>sample string 3</Value>
    </AutomationAction>
    <AutomationAction>
      <ActionType>6</ActionType>
      <Active>true</Active>
      <Description>sample string 4</Description>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <RuleId>1</RuleId>
      <Value>sample string 3</Value>
    </AutomationAction>
  </Actions>
  <Conditions>
    <AutomationCondition>
      <Days>sample string 2</Days>
      <EndTime>2026-09-27T06:22:55.6255971+00:00</EndTime>
      <FromPlaceId>1</FromPlaceId>
      <Id>1</Id>
      <Name>sample string 3</Name>
      <RuleId>1</RuleId>
      <StartTime>2026-09-27T06:22:55.6255971+00:00</StartTime>
      <ToPlaceId>1</ToPlaceId>
    </AutomationCondition>
    <AutomationCondition>
      <Days>sample string 2</Days>
      <EndTime>2026-09-27T06:22:55.6255971+00:00</EndTime>
      <FromPlaceId>1</FromPlaceId>
      <Id>1</Id>
      <Name>sample string 3</Name>
      <RuleId>1</RuleId>
      <StartTime>2026-09-27T06:22:55.6255971+00:00</StartTime>
      <ToPlaceId>1</ToPlaceId>
    </AutomationCondition>
  </Conditions>
  <CreatedAt>2026-09-27T06:22:55.6255971+00:00</CreatedAt>
  <CreatedBy>4</CreatedBy>
  <CustomerId>5</CustomerId>
  <Id>1</Id>
  <Name>sample string 1</Name>
  <RulesAnd>true</RulesAnd>
  <Scopes>
    <AutomationScope>
      <CustomerId>1</CustomerId>
      <DivisionId>1</DivisionId>
      <DriverId>1</DriverId>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <RuleId>3</RuleId>
      <VehicleId>1</VehicleId>
    </AutomationScope>
    <AutomationScope>
      <CustomerId>1</CustomerId>
      <DivisionId>1</DivisionId>
      <DriverId>1</DriverId>
      <Id>1</Id>
      <Name>sample string 2</Name>
      <RuleId>3</RuleId>
      <VehicleId>1</VehicleId>
    </AutomationScope>
  </Scopes>
</AutomationRule>