POST api/customer/automation/condition

Request Information

URI Parameters

None.

Body Parameters

ConditionData
NameDescriptionTypeAdditional information
Days

string

None.

EndTime

date

None.

FromPlaceId

integer

None.

Name

string

None.

RuleId

integer

None.

StartTime

date

None.

ToPlaceId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Days": "sample string 1",
  "EndTime": "2026-03-31T11:07:41.4821644+00:00",
  "FromPlaceId": 1,
  "Name": "sample string 2",
  "RuleId": 3,
  "StartTime": "2026-03-31T11:07:41.4821644+00:00",
  "ToPlaceId": 1
}

application/xml, text/xml

Sample:
<AutomationController.ConditionData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saga.Kjorebok.Rest.Controllers">
  <Days>sample string 1</Days>
  <EndTime>2026-03-31T11:07:41.4821644+00:00</EndTime>
  <FromPlaceId>1</FromPlaceId>
  <Name>sample string 2</Name>
  <RuleId>3</RuleId>
  <StartTime>2026-03-31T11:07:41.4821644+00:00</StartTime>
  <ToPlaceId>1</ToPlaceId>
</AutomationController.ConditionData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AutomationCondition
NameDescriptionTypeAdditional information
Id

integer

None.

RuleId

integer

None.

FromPlaceId

integer

None.

ToPlaceId

integer

None.

StartTime

date

None.

EndTime

date

None.

Days

string

None.

Name

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "RuleId": 1,
  "FromPlaceId": 1,
  "ToPlaceId": 1,
  "StartTime": "2026-03-31T11:07:41.4821644+00:00",
  "EndTime": "2026-03-31T11:07:41.4821644+00:00",
  "Days": "sample string 2",
  "Name": "sample string 3"
}

application/xml, text/xml

Sample:
<AutomationCondition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saga.Kjorebok.Backend.TripAutomation.Model">
  <Days>sample string 2</Days>
  <EndTime>2026-03-31T11:07:41.4821644+00:00</EndTime>
  <FromPlaceId>1</FromPlaceId>
  <Id>1</Id>
  <Name>sample string 3</Name>
  <RuleId>1</RuleId>
  <StartTime>2026-03-31T11:07:41.4821644+00:00</StartTime>
  <ToPlaceId>1</ToPlaceId>
</AutomationCondition>