---
title: "edit scheduled event"
method: POST
path: "/instances/{id}/client/action/edit-scheduled-event"
tags: ["message"]
---

# edit scheduled event

`POST /instances/{id}/client/action/edit-scheduled-event`

Edits an existing scheduled event message with updated details.

## Path parameters

- `id` integer, required

## Request body

- object
  - `messageId` string, required — The serialized message ID of the event to edit
  - `name` string — Updated name of the event
  - `startTimeTs` integer — Updated start time as a Unix timestamp
  - `eventSendOptions` object — Additional event options to update
    - `description` string — Updated description of the event
    - `endTimeTs` integer — Updated end time as a Unix timestamp
    - `location` string — Updated location of the event
    - `callType` 'video' | 'voice' | 'none' — Updated call type for the event
    - `isEventCanceled` boolean — Whether the event is canceled

## Response `200`

Scheduled event updated successfully

- object
  - `status` 'success' | 'error'
  - `instanceId` string
  - `data` object
    - `messageId` string — The event message ID
    - `message` object, nullable — The edited message object, or null if edit failed

## Other responses

- `401` — Unauthorized — invalid or missing bearer token
- `403` — Forbidden — insufficient permissions or account blocked
- `404` — Not found — instance does not exist or does not belong to you
- `409` — Conflict — instance is not ready
- `422` — Validation error — invalid or missing request parameters
- `429` — Too many requests — rate limit exceeded

---

[API](https://skmtc.net/waapi/apis/waapi-api.md) · [All operations](https://skmtc.net/waapi/apis/waapi-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/waapi/waapi-api/revisions/1e2cc7c12090/schema)
