# Create Scheduled Event

> Create a scheduled event.

- ID: `create_scheduled_event`
- Type: Block
- Category: [Scheduled Event](https://inventor.bot/docs/reference/blocks/scheduled-event.md)

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `server_id` | yes | Server the event belongs to. |  |
| `channel_id` |  | Channel where the event will take place (required for Stage/Voice). |  |
| `name` | yes | Name of the scheduled event. |  |
| `description` | yes | Description of the event. |  |
| `start_time_unix` | yes | Event start time as a Unix timestamp. | e.g. `"1733030400"` |
| `end_time_unix` |  | Event end time as a Unix timestamp. | e.g. `"1733034000"` |
| `type_` | yes | Event type. | `"Stage Instance"`, `"Voice"`, `"External"` |
| `location` |  | Location for External events (URL or description). |  |
| `image_url` |  | Base64 encoded image for the scheduled event. |  |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `event_id` | ID of the scheduled event. |  |
| `server_id` | ID of the server for the event. |  |
| `channel_id` | Channel ID for Stage/Voice events. |  |
| `creator_user_id` | User ID of the event creator. |  |
| `name` | Name of the scheduled event. |  |
| `description` | Description of the scheduled event. |  |
| `start_time_unix` | Start time as Unix timestamp. |  |
| `end_time_unix` | End time as Unix timestamp. |  |
| `status` | Status of the scheduled event. |  |
| `type_` | Event type. |  |
| `subscribed_user_count` | Number of users subscribed to the event. |  |

**Example**

```go
scheduledEvent := create_scheduled_event(Args{
	server_id:       trigger.server_id,
	name:            "...",
	description:     "...",
	start_time_unix: "1733030400",
	type_:           "Stage Instance",
})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Event ID: " + scheduledEvent.event_id,
})
```