Zernio
Zernio
API Reference

Discord

Settings

Get Discord account settingsGETUpdate Discord settingsPATCHList Discord guild channelsGET

Messaging

Send a Discord Direct MessagePOSTList pinned messagesGETPin a Discord messagePUTUnpin a Discord messageDELETECreate a Discord public threadPOSTCrosspost Discord messagePOSTDelete a Discord channel messageDELETE

Roles & Members

List Discord guild rolesGETCreate a Discord guild rolePOSTEdit a Discord guild rolePATCHDelete a Discord guild roleDELETEList Discord guild membersGETSearch Discord guild membersGETGet a Discord guild memberGETAssign a role to a guild memberPUTRemove a role from a guild memberDELETE

Scheduled Events

List Discord scheduled eventsGETCreate a Discord scheduled eventPOSTGet a Discord scheduled eventGETUpdate a Discord scheduled eventPATCHDelete a Discord scheduled eventDELETE
Dashboard
llms.txtOpenAPI
OverviewPlatformsAPI ReferenceResources
Discord

Update a Discord scheduled event

Patch any subset of fields. Passing status: 'cancelled' is how you cancel an event. Discord doesn't have a dedicated cancel endpoint, it's a status transition.

Most status transitions Discord enforces (you can't go SCHEDULED → COMPLETED directly). The common consumer case is SCHEDULED → CANCELED.


PATCH
/v1/discord/guilds/{guildId}/events/{eventId}

Authorization

bearerAuth
AuthorizationBearer <token>

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

In: header

Path Parameters

guildId*string
eventId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.discord.updateDiscordScheduledEvent({  path: {    guildId: 'guild_abc123',    eventId: 'event_abc123',  },  body: {    accountId: 'account_abc123',  },});console.log(data);
{  "data": {    "id": "string",    "guild_id": "string",    "channel_id": "string",    "creator_id": "string",    "name": "string",    "description": "string",    "scheduled_start_time": "2019-08-24T14:15:22Z",    "scheduled_end_time": "2019-08-24T14:15:22Z",    "privacy_level": 2,    "status": 1,    "entity_type": 1,    "entity_id": "string",    "entity_metadata": {      "location": "string"    },    "user_count": 0,    "image": "string"  }}
Was this page helpful?

Get a Discord scheduled event

Previous Page

Delete a Discord scheduled event

Hard-delete an event. Use PATCH with `status: 'cancelled'` instead if you want the event preserved in the guild's history.

accountId*string
name?string
Length1 <= length <= 100
description?string
Lengthlength <= 1000
startsAt?string
Formatdate-time
endsAt?string
Formatdate-time
location?string

For external events.

Length1 <= length <= 100
status?string

Status transition. Most common: 'cancelled' to cancel an event.

Value in

  • "scheduled"
  • "active"
  • "completed"
  • "cancelled"
imageDataUri?string
Match^data:image/(png|jpeg|gif);base64,