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
required

When the event starts (UTC). When the event has time slots, this is the start of the earliest one.

date-time | null

When the event ends (UTC).

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 time slots for the event (UTC).

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