---
title: "Create an event"
method: POST
path: "/1/videos/{channel}/events"
tags: ["Event"]
---

# Create an event

`POST /1/videos/{channel}/events`

This endpoint allows you to create an Event.

## Path parameters

- `channel` integer, required

## Query parameters

- `account_id` integer, required — Account identifier

## Request body

- object
  - `access_country` string, nullable — a strict string (no HTML/PHP tags or HTML entities allowed)
  - `authorize_country` boolean, required — Authorise or Prohibit countries to view the stream
  - `date` string, nullable — Timestamp `{name}` has been created
  - `dvr_window` integer, nullable
  - `fragment_duration` integer, required — Limit the size of files
  - `live_playlist_id` string — a strict string (no HTML/PHP tags or HTML entities allowed)
  - `live_playlist_inactive_name` string — a strict string (no HTML/PHP tags or HTML entities allowed)
  - `name` string, required — a strict string (no HTML/PHP tags or HTML entities allowed)
  - `record` boolean — Activate the interrupt of the live event
  - `record_name` string, nullable — Name of the recording
  - `repeat_interval` integer, nullable
  - `repeat_until` integer, nullable
  - `simulcasts` object[] — a simple array (weak validation)
    - `simulcast_config_id` integer, required
  - `start_at` integer, required — Start of the event
  - `stop_at` integer, required — End of the event
  - `stop_live` boolean, required — Add geographical restrictions
  - `storage_machine_id` integer, nullable — Unique identifier of the `storage space`
  - `timezone` string, required — a strict string (no HTML/PHP tags or HTML entities allowed)
  - `weekdays_only` boolean, nullable
  - `weekends_only` boolean, nullable

## Response `201`

Created

- object
  - `result` 'success' | 'error' | 'asynchronous', required — Result of the HTTP request
  - `data` A57c9d69RepeatablePlannedEvent
    - `planned_event_id` integer, required
    - `stream_id` string, required — Unique identifier of the `stream` that is related to the resource `RepeatablePlannedEvent`
    - `storage_machine_id` integer, required — Unique identifier of the `channel` that is related to the resource `RepeatablePlannedEvent`
    - `deleted_at` integer, required — Timestamp `RepeatablePlannedEvent` has been deleted
    - `name` string, required — Name of the resource `RepeatablePlannedEvent`
    - `start_at` integer, required
    - `stop_at` integer, required
    - `timezone` string, required
    - `repeat_interval` integer, required
    - `repeat_until` integer, required
    - `weekends_only` boolean, required
    - `weekdays_only` boolean, required
    - `authorize_country` boolean, required
    - `stop_live` boolean, required
    - `access_country` string, required
    - `record` boolean, required
    - `record_name` string, required
    - `fragment_duration` integer, required
    - `dvr_window` integer, required
    - `simulcasts` string, required
    - `type` 'all' | 'from' | 'only', required — only=>Change only this event, all=>Change all event, from=>Change this event and recurrences

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
