POST v2/apps/{appId}/calendar/{tenantId}

Create a new Calendar for the Tenant

Request Information

URI Parameters

Name Type Description
appId integer

Application Id

Additional Info :

Required

tenantId integer

Tenant Id

Additional Info :

Required

Body Parameters

Request

CalendarRequest
Name Type Description
Type TypeEnum

Type of Calendar getting Created

Additional Info :

Required

AccessType AccessTypeEnum

Access Type

Additional Info :

Required

Name string

Calendar Name

Additional Info :

Required

Request Formats

{
  "type": 1,
  "accessType": 1,
  "name": "sample string 1"
}
<CalendarRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AppNotch.Converter.Api.Server.Models">
  <AccessType>Private</AccessType>
  <Name>sample string 1</Name>
  <Type>Event</Type>
</CalendarRequest>

Response Information

Resource Description

Signle object that will have the information of the newly created calendar

Collection of CalendarResponse
Name Type Description
Id integer

Calendar Id

AppId integer

App Id

AppType AppTypeEnum

App Type

Type TypeEnum

Type

AccessType AccessTypeEnum

Access Type

Name string

Calendar Name

CreateDate date

Create Date

UpdateDate date

Update Date

Response Formats

[
  {
    "id": 1,
    "appId": 2,
    "appType": 1,
    "type": 1,
    "accessType": 1,
    "name": "sample string 3",
    "createDate": "2024-04-23T18:50:52.1703104Z",
    "updateDate": "2024-04-23T18:50:52.1703104Z"
  },
  {
    "id": 1,
    "appId": 2,
    "appType": 1,
    "type": 1,
    "accessType": 1,
    "name": "sample string 3",
    "createDate": "2024-04-23T18:50:52.1703104Z",
    "updateDate": "2024-04-23T18:50:52.1703104Z"
  }
]
<ArrayOfCalendarResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AppNotch.Converter.Api.Server.Models">
  <CalendarResponse>
    <AccessType>Private</AccessType>
    <AppId>2</AppId>
    <AppType>Master</AppType>
    <CreateDate>2024-04-23T18:50:52.1703104+00:00</CreateDate>
    <Id>1</Id>
    <Name>sample string 3</Name>
    <Type>Event</Type>
    <UpdateDate>2024-04-23T18:50:52.1703104+00:00</UpdateDate>
  </CalendarResponse>
  <CalendarResponse>
    <AccessType>Private</AccessType>
    <AppId>2</AppId>
    <AppType>Master</AppType>
    <CreateDate>2024-04-23T18:50:52.1703104+00:00</CreateDate>
    <Id>1</Id>
    <Name>sample string 3</Name>
    <Type>Event</Type>
    <UpdateDate>2024-04-23T18:50:52.1703104+00:00</UpdateDate>
  </CalendarResponse>
</ArrayOfCalendarResponse>