Copy event

Create a new event as a copy of an existing one. The body provides the new event's name, calendar, visibility, and dates; all other content (description, settings, categories, custom fields, check-in sessions, labels, and organizers) is copied from the source event. Returns the new event's id and name.

Required permission: Full Write Events

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required
≥ 1

The id of the event to copy.

Body Params

Details for the new event.

string | null
required

The name of the event.

date-time | null

When the event starts, as a UTC instant. When the event has time slots, this is the start of the earliest one. On writes, an event that carries start or end is read as instant-based and startDate and endDate are ignored. On writes, required unless startDate is sent.

date-time | null

When the event ends, as a UTC instant. On writes, an event that carries start or end is read as instant-based and startDate and endDate are ignored.

date | null

The first calendar date of the event in the event's time zone (yyyy-MM-dd). On writes, used when the event is sent without UTC instants; an event that carries any instant is read as instant-based and this field is ignored. On writes, required unless start is sent.

date | null

The last calendar date of the event in the event's time zone (yyyy-MM-dd), inclusive. Equals startDate for a single-day event. On writes, used when the event is sent without UTC instants; an event that carries any instant is read as instant-based and this field is ignored.

boolean | null

Whether the event runs all day rather than at specific times.

schedules
array of objects | null

The repeating schedule definitions for the event.

schedules
times
array of objects | null

The event's time slots. Each carries UTC instants and wall-clock twins in the event's time zone.

times
boolean

Whether the event is visible to the public (inherited from its calendar).

calendar
object | null

The calendar the event belongs to. The event endpoints populate the id, code, name, color, and flags; the remaining statistics fields come from the calendars endpoints. On writes, provide the calendar's id or code (required unless the event belongs to a group); values come from /api/calendars.

exceptions
object | null

For repeating events, dates added to or removed from the generated schedule (UTC).

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

401

Authentication is required, or the Ocs-Api-Key header is missing or invalid.

Language
Credentials
Header
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json