PUT api/Admin/ScheduledEvents

Updates an existing scheduled event

Request Information

URI Parameters

None.

Body Parameters

UpdateScheduledEventRequest
NameDescriptionTypeAdditional information
Id

Id of scheduled event to update

integer

None.

ChangedBy

Changed by

string

None.

StartDate

Start date for scheduled event Used for reoccurance (See RecurringEventType)

date

None.

EndDate

End date for scheduled event Used for reoccurance (See RecurringEventType)

date

None.

StartTime

Start time for scheduled event

time interval

None.

EndTime

End time for scheduled event

time interval

None.

Monday

True if scheduled event should be on mondays

boolean

None.

Tuesday

True if scheduled event should be on tuesdays

boolean

None.

Wednesday

True if scheduled event should be on wednesdays

boolean

None.

Thursday

True if scheduled event should be on thursdays

boolean

None.

Friday

True if scheduled event should be on fridays

boolean

None.

Saturday

True if scheduled event should be on saturdays

boolean

None.

Sunday

True if scheduled event should be on sundays

boolean

None.

RecurringEventType

Reoccurance, possible to make scheduled event reoccur on specified interval (between StartDate and EndDate)

string

Required

Note

Note

string

Max length: 255

Active

True if the scheduled event is active (i.e. if it should be used)

boolean

None.

Closed

True if scheduled event is a booking False if scheduled event is extended opening hours

boolean

None.

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "ChangedBy": "sample string 3",
  "StartDate": "2025-12-20",
  "EndDate": "2025-12-20",
  "StartTime": "00:00",
  "EndTime": "00:00",
  "Monday": true,
  "Tuesday": true,
  "Wednesday": true,
  "Thursday": true,
  "Friday": true,
  "Saturday": true,
  "Sunday": true,
  "RecurringEventType": "sample string 8",
  "Note": "sample string 9",
  "Active": true,
  "Closed": true
}

application/xml, text/xml

Sample:
<UpdateScheduledEventRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO">
  <Active>true</Active>
  <Closed>true</Closed>
  <EndDate>2025-12-20T22:05:24.6945625+00:00</EndDate>
  <EndTime>PT0.1234567S</EndTime>
  <Friday>true</Friday>
  <Id>0</Id>
  <Monday>true</Monday>
  <Note>sample string 9</Note>
  <RecurringEventType>sample string 8</RecurringEventType>
  <Saturday>true</Saturday>
  <StartDate>2025-12-20T22:05:24.6945625+00:00</StartDate>
  <StartTime>PT0.1234567S</StartTime>
  <Sunday>true</Sunday>
  <Thursday>true</Thursday>
  <Tuesday>true</Tuesday>
  <Wednesday>true</Wednesday>
  <ChangedBy>sample string 3</ChangedBy>
  <Id>1</Id>
</UpdateScheduledEventRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns 204 No Content on success.

None.