POST api/Event/CreateEvent?entityListID={entityListID}&entityID={entityID}

Creates an event

Request Information

URI Parameters

NameDescriptionTypeAdditional information
entityListID

The identifier of the entity list

string

Required

entityID

The identifier of the entity

integer

Required

Body Parameters

The event to be created

WorkPoint365.WebAPI.Model.EventBE
NameDescriptionTypeAdditional information
EventListID

Gets or sets the event list ID.

string

None.

Id

Gets or sets the id.

string

None.

AllDayEvent

Gets or sets all day event.

boolean

None.

Attendees

Gets or sets the attendees.

Collection of WorkPoint365.WebAPI.Model.EventBE+Attendee

None.

Description

Gets or sets the description.

string

None.

End

Gets or sets the end date.

date

None.

Location

Gets or sets the location.

string

None.

Owner

Gets or sets the owner.

string

None.

Start

Gets or sets the start date.

date

None.

Title

Gets or sets the title.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "EventListID": "sample string 1",
  "Id": "sample string 2",
  "AllDayEvent": true,
  "Attendees": [
    {
      "Email": "sample string 1",
      "Name": "sample string 2",
      "Ntlogin": "sample string 3",
      "Status": 0,
      "Type": 0
    },
    {
      "Email": "sample string 1",
      "Name": "sample string 2",
      "Ntlogin": "sample string 3",
      "Status": 0,
      "Type": 0
    }
  ],
  "Description": "sample string 4",
  "End": "2024-12-27T19:25:56.8713038+00:00",
  "Location": "sample string 6",
  "Owner": "sample string 7",
  "Start": "2024-12-27T19:25:56.8713038+00:00",
  "Title": "sample string 9"
}

application/xml, text/xml

Sample:
<EventBE xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WorkPoint365.WebAPI.Model">
  <AllDayEvent>true</AllDayEvent>
  <Attendees>
    <EventBE.Attendee>
      <Email>sample string 1</Email>
      <Name>sample string 2</Name>
      <Ntlogin>sample string 3</Ntlogin>
      <Status>Accepted</Status>
      <Type>System</Type>
    </EventBE.Attendee>
    <EventBE.Attendee>
      <Email>sample string 1</Email>
      <Name>sample string 2</Name>
      <Ntlogin>sample string 3</Ntlogin>
      <Status>Accepted</Status>
      <Type>System</Type>
    </EventBE.Attendee>
  </Attendees>
  <Description>sample string 4</Description>
  <End>2024-12-27T19:25:56.8713038+00:00</End>
  <EventListID>sample string 1</EventListID>
  <Id>sample string 2</Id>
  <Location>sample string 6</Location>
  <Owner>sample string 7</Owner>
  <Start>2024-12-27T19:25:56.8713038+00:00</Start>
  <Title>sample string 9</Title>
</EventBE>

Response Information

Resource Description

The identifier for the created event

System.Web.Http.IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.