POST api/v1/planningdays/create/rule

Request Information

URI Parameters

None.

Body Parameters

PlanningDayCreatorRule
NameDescriptionTypeAdditional information
StartDate

date

Required

EndDate

date

Required

EveryMonday

boolean

None.

EveryTuesday

boolean

None.

EveryWednesday

boolean

None.

EveryThursday

boolean

None.

EveryFriday

boolean

None.

EverySaturday

boolean

None.

EverySunday

boolean

None.

LocationId

globally unique identifier

Required

Remarks

string

None.

Request Formats

application/json, text/json

Sample:
{
  "StartDate": "2019-10-24T03:53:18.2515763+02:00",
  "EndDate": "2019-10-24T03:53:18.2515763+02:00",
  "EveryMonday": true,
  "EveryTuesday": true,
  "EveryWednesday": true,
  "EveryThursday": true,
  "EveryFriday": true,
  "EverySaturday": true,
  "EverySunday": true,
  "LocationId": "db168248-a9d4-4e5b-b5c4-fa752bb3a67d",
  "Remarks": "sample string 11"
}

text/html

Sample:
{"StartDate":"2019-10-24T03:53:18.2515763+02:00","EndDate":"2019-10-24T03:53:18.2515763+02:00","EveryMonday":true,"EveryTuesday":true,"EveryWednesday":true,"EveryThursday":true,"EveryFriday":true,"EverySaturday":true,"EverySunday":true,"LocationId":"db168248-a9d4-4e5b-b5c4-fa752bb3a67d","Remarks":"sample string 11"}

application/xml, text/xml

Sample:
<PlanningDayCreatorRule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.PlanningDay">
  <EndDate>2019-10-24T03:53:18.2515763+02:00</EndDate>
  <EveryFriday>true</EveryFriday>
  <EveryMonday>true</EveryMonday>
  <EverySaturday>true</EverySaturday>
  <EverySunday>true</EverySunday>
  <EveryThursday>true</EveryThursday>
  <EveryTuesday>true</EveryTuesday>
  <EveryWednesday>true</EveryWednesday>
  <LocationId>db168248-a9d4-4e5b-b5c4-fa752bb3a67d</LocationId>
  <Remarks>sample string 11</Remarks>
  <StartDate>2019-10-24T03:53:18.2515763+02:00</StartDate>
</PlanningDayCreatorRule>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of PlanningDayOverview
NameDescriptionTypeAdditional information
PlanningDayId

globally unique identifier

None.

Day

date

None.

LocationName

string

None.

Remarks

string

None.

TowingPilotName

string

None.

FlightOperatorName

string

None.

InstructorName

string

None.

NumberOfAircraftReservations

integer

None.

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "PlanningDayId": "cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64",
    "Day": "2019-10-24T03:53:18.2671833+02:00",
    "LocationName": "sample string 4",
    "Remarks": "sample string 5",
    "TowingPilotName": "sample string 6",
    "FlightOperatorName": "sample string 7",
    "InstructorName": "sample string 8",
    "NumberOfAircraftReservations": 9,
    "Id": "cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  },
  {
    "PlanningDayId": "cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64",
    "Day": "2019-10-24T03:53:18.2671833+02:00",
    "LocationName": "sample string 4",
    "Remarks": "sample string 5",
    "TowingPilotName": "sample string 6",
    "FlightOperatorName": "sample string 7",
    "InstructorName": "sample string 8",
    "NumberOfAircraftReservations": 9,
    "Id": "cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64",
    "CanUpdateRecord": true,
    "CanDeleteRecord": true
  }
]

text/html

Sample:
[{"PlanningDayId":"cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64","Day":"2019-10-24T03:53:18.2671833+02:00","LocationName":"sample string 4","Remarks":"sample string 5","TowingPilotName":"sample string 6","FlightOperatorName":"sample string 7","InstructorName":"sample string 8","NumberOfAircraftReservations":9,"Id":"cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64","CanUpdateRecord":true,"CanDeleteRecord":true},{"PlanningDayId":"cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64","Day":"2019-10-24T03:53:18.2671833+02:00","LocationName":"sample string 4","Remarks":"sample string 5","TowingPilotName":"sample string 6","FlightOperatorName":"sample string 7","InstructorName":"sample string 8","NumberOfAircraftReservations":9,"Id":"cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64","CanUpdateRecord":true,"CanDeleteRecord":true}]

application/xml, text/xml

Sample:
<ArrayOfPlanningDayOverview xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.PlanningDay">
  <PlanningDayOverview>
    <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
    <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
    <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64</Id>
    <Day>2019-10-24T03:53:18.2671833+02:00</Day>
    <FlightOperatorName>sample string 7</FlightOperatorName>
    <InstructorName>sample string 8</InstructorName>
    <LocationId>914be3ca-da74-40b6-b873-7881cc926582</LocationId>
    <LocationName>sample string 4</LocationName>
    <NumberOfAircraftReservations>9</NumberOfAircraftReservations>
    <PlanningDayId>cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64</PlanningDayId>
    <Remarks>sample string 5</Remarks>
    <TowingPilotName>sample string 6</TowingPilotName>
  </PlanningDayOverview>
  <PlanningDayOverview>
    <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
    <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
    <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64</Id>
    <Day>2019-10-24T03:53:18.2671833+02:00</Day>
    <FlightOperatorName>sample string 7</FlightOperatorName>
    <InstructorName>sample string 8</InstructorName>
    <LocationId>914be3ca-da74-40b6-b873-7881cc926582</LocationId>
    <LocationName>sample string 4</LocationName>
    <NumberOfAircraftReservations>9</NumberOfAircraftReservations>
    <PlanningDayId>cbcaa9fa-29af-4d53-bf3d-e0fa29f97b64</PlanningDayId>
    <Remarks>sample string 5</Remarks>
    <TowingPilotName>sample string 6</TowingPilotName>
  </PlanningDayOverview>
</ArrayOfPlanningDayOverview>