POST api/Calendar/EditEvent

Request Information

URI Parameters

None.

Body Parameters

Event
NameDescriptionTypeAdditional information
Titel

string

None.

StartDate

date

Required

EndDate

date

Required

StartTime

string

Required

EndTime

string

Required

Afdeling

Afdeling

Required

Description

string

Required

Location

string

Required

Status

Status

None.

Year

string

None.

Activity

string

None.

ShowOnFrontPage

boolean

None.

RepeatOptions

string

None.

RecurringEndDate

date

None.

Id

integer

None.

Created

date

None.

CreatedBy

string

None.

Modified

date

None.

ModifiedBy

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Titel": "sample string 1",
  "StartDate": "2019-10-15T06:31:07.3883318+02:00",
  "EndDate": "2019-10-15T06:31:07.3883318+02:00",
  "StartTime": "sample string 4",
  "EndTime": "sample string 5",
  "Afdeling": 0,
  "Description": "sample string 6",
  "Location": "sample string 7",
  "Status": 0,
  "Year": "sample string 8",
  "Activity": "sample string 9",
  "ShowOnFrontPage": true,
  "RepeatOptions": "sample string 11",
  "RecurringEndDate": "2019-10-15T06:31:07.3883318+02:00",
  "Id": 13,
  "Created": "2019-10-15T06:31:07.3883318+02:00",
  "CreatedBy": "sample string 14",
  "Modified": "2019-10-15T06:31:07.3883318+02:00",
  "ModifiedBy": "sample string 15"
}

application/xml, text/xml

Sample:
<Event xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <Created xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:31:07.3883318+02:00</Created>
  <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 14</CreatedBy>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Model.Base">13</Id>
  <Modified xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:31:07.3883318+02:00</Modified>
  <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 15</ModifiedBy>
  <Activity>sample string 9</Activity>
  <Afdeling>Håndbold</Afdeling>
  <Description>sample string 6</Description>
  <EndDate>2019-10-15T06:31:07.3883318+02:00</EndDate>
  <EndTime>sample string 5</EndTime>
  <Location>sample string 7</Location>
  <RecurringEndDate>2019-10-15T06:31:07.3883318+02:00</RecurringEndDate>
  <RepeatOptions>sample string 11</RepeatOptions>
  <ShowOnFrontPage>true</ShowOnFrontPage>
  <StartDate>2019-10-15T06:31:07.3883318+02:00</StartDate>
  <StartTime>sample string 4</StartTime>
  <Status>Aktiv</Status>
  <Titel>sample string 1</Titel>
  <Year>sample string 8</Year>
</Event>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ServiceResultOfEvent
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

Event

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": {
    "Titel": "sample string 1",
    "StartDate": "2019-10-15T06:31:07.3883318+02:00",
    "EndDate": "2019-10-15T06:31:07.3883318+02:00",
    "StartTime": "sample string 4",
    "EndTime": "sample string 5",
    "Afdeling": 0,
    "Description": "sample string 6",
    "Location": "sample string 7",
    "Status": 0,
    "Year": "sample string 8",
    "Activity": "sample string 9",
    "ShowOnFrontPage": true,
    "RepeatOptions": "sample string 11",
    "RecurringEndDate": "2019-10-15T06:31:07.3883318+02:00",
    "Id": 13,
    "Created": "2019-10-15T06:31:07.3883318+02:00",
    "CreatedBy": "sample string 14",
    "Modified": "2019-10-15T06:31:07.3883318+02:00",
    "ModifiedBy": "sample string 15"
  },
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfEventYgFqSxnr xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>
    <Created xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:31:07.3883318+02:00</Created>
    <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 14</CreatedBy>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Model.Base">13</Id>
    <Modified xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T06:31:07.3883318+02:00</Modified>
    <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 15</ModifiedBy>
    <Activity>sample string 9</Activity>
    <Afdeling>Håndbold</Afdeling>
    <Description>sample string 6</Description>
    <EndDate>2019-10-15T06:31:07.3883318+02:00</EndDate>
    <EndTime>sample string 5</EndTime>
    <Location>sample string 7</Location>
    <RecurringEndDate>2019-10-15T06:31:07.3883318+02:00</RecurringEndDate>
    <RepeatOptions>sample string 11</RepeatOptions>
    <ShowOnFrontPage>true</ShowOnFrontPage>
    <StartDate>2019-10-15T06:31:07.3883318+02:00</StartDate>
    <StartTime>sample string 4</StartTime>
    <Status>Aktiv</Status>
    <Titel>sample string 1</Titel>
    <Year>sample string 8</Year>
  </Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfEventYgFqSxnr>