POST api/Calendar/DeleteCalendar

Deletes a resource calendar

Examples

The sample below shows how to delete a resource calendar


{ 
  "ResourceId": "dolly@subbus.no",
  "TicketId": "8d9e7eb3-3e23-443d-bb38-ced65c88e168",
  "Culture": "no"
}

Request Information

URI Parameters

None.

Body Parameters

Specify the resource

CalendarArgumentModel
NameDescriptionTypeAdditional information
ResourceId

Get or sets resource id, this property must be set. You must also have access to this user.

string

None.

From

Get or set from date, if not set we will use the current day

date

None.

To

Get or set the to date, if not set we will use current day pluss one month

date

None.

TicketId

Gets or sets the ticket id

string

None.

Culture

Gets or sets culture, if not specified we will use culture set on user.

string

None.

CalendarItems

Gets or sets the periods

Collection of AttributeUpdateModel

None.

Request Formats

application/json, text/json

Sample:
{
  "CalendarItems": [
    {
      "AttributeName": "sample string 1",
      "AttributeAction": 0,
      "AttributeType": 0,
      "AttributeTransaction": "sample string 2",
      "AttributeData": {}
    },
    {
      "AttributeName": "sample string 1",
      "AttributeAction": 0,
      "AttributeType": 0,
      "AttributeTransaction": "sample string 2",
      "AttributeData": {}
    }
  ],
  "ResourceId": "sample string 1",
  "From": "2026-11-11T20:26:45.1946978+01:00",
  "To": "2026-11-11T20:26:45.1946978+01:00",
  "TicketId": "sample string 2",
  "Culture": "sample string 3"
}

application/xml, text/xml

Sample:
<CalendarArgumentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rostov.Models">
  <Culture>sample string 3</Culture>
  <TicketId>sample string 2</TicketId>
  <CalendarItems>
    <AttributeUpdateModel>
      <AttributeAction>Add</AttributeAction>
      <AttributeData />
      <AttributeName>sample string 1</AttributeName>
      <AttributeTransaction>sample string 2</AttributeTransaction>
      <AttributeType>Field</AttributeType>
    </AttributeUpdateModel>
    <AttributeUpdateModel>
      <AttributeAction>Add</AttributeAction>
      <AttributeData />
      <AttributeName>sample string 1</AttributeName>
      <AttributeTransaction>sample string 2</AttributeTransaction>
      <AttributeType>Field</AttributeType>
    </AttributeUpdateModel>
  </CalendarItems>
  <From>2026-11-11T20:26:45.1946978+01:00</From>
  <ResourceId>sample string 1</ResourceId>
  <To>2026-11-11T20:26:45.1946978+01:00</To>
</CalendarArgumentModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CalendarArgumentModel'.

Response Information

Resource Description

Returns just basic performance information

BaseReturnModel
NameDescriptionTypeAdditional information
CombinedPerformanceId

Gets or sets the performance id. If performance monitoring is not turned on this property will not be present or set to null

string

Json null value handling: Ignore

Response Formats

application/json, text/json

Sample:
{
  "CombinedPerformanceId": "sample string 1"
}

application/xml, text/xml

Sample:
<BaseReturnModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Rostov.Models">
  <CombinedPerformanceId>sample string 1</CombinedPerformanceId>
</BaseReturnModel>