POST api/customer/automation/scope

Request Information

URI Parameters

None.

Body Parameters

ScopeData
NameDescriptionTypeAdditional information
DivisionId

integer

None.

DriverId

integer

None.

Name

string

None.

VehicleId

integer

None.

RuleId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DivisionId": 1,
  "DriverId": 1,
  "Name": "sample string 1",
  "VehicleId": 1,
  "RuleId": 2
}

application/xml, text/xml

Sample:
<AutomationController.ScopeData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saga.Kjorebok.Rest.Controllers">
  <DivisionId>1</DivisionId>
  <DriverId>1</DriverId>
  <Name>sample string 1</Name>
  <RuleId>2</RuleId>
  <VehicleId>1</VehicleId>
</AutomationController.ScopeData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

AutomationScope
NameDescriptionTypeAdditional information
Id

integer

None.

CustomerId

integer

None.

DivisionId

integer

None.

VehicleId

integer

None.

DriverId

integer

None.

Name

string

None.

RuleId

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "CustomerId": 1,
  "DivisionId": 1,
  "VehicleId": 1,
  "DriverId": 1,
  "Name": "sample string 2",
  "RuleId": 3
}

application/xml, text/xml

Sample:
<AutomationScope xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Saga.Kjorebok.Backend.TripAutomation.Model">
  <CustomerId>1</CustomerId>
  <DivisionId>1</DivisionId>
  <DriverId>1</DriverId>
  <Id>1</Id>
  <Name>sample string 2</Name>
  <RuleId>3</RuleId>
  <VehicleId>1</VehicleId>
</AutomationScope>