# Update Event — Livestorm

> Update an event with its full list of attributes. See the Documentation

- Key: `livestorm-update-event`
- Type: Action (Write)
- Version: 0.0.2
- App: Livestorm (`livestorm`) — https://pipedream.com/apps/livestorm.md
- This page (HTML): https://pipedream.com/apps/livestorm/actions/update-event
- Hints: destructive · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/livestorm/actions/update-event/update-event.mjs

## Description

Update an event with its full list of attributes. [See the Documentation](https://developers.livestorm.co/reference/put_events-id)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `eventId` | `string` | Yes | The ID of the event. Options are loaded from the connected account. |
| `ownerId` | `string` | Yes | The ID of the user who owns the event. Options are loaded from the connected account. |
| `title` | `string` | Yes | The title of the event. |
| `slug` | `string` | Yes | The slug of the event. |
| `status` | `string` | Yes | The status of the event. |
| `description` | `string` | Yes | The HTML description of your event. Example: <h1>My event description</h1> |
| `recordingEnabled` | `boolean` | Yes | Whether or not the event is recorded. |
| `chatEnabled` | `boolean` | Yes | Whether or not the chat is enabled. |
| `everyoneCanSpeak` | `boolean` | Yes | Whether or not everyone can speak. |
| `detailedRegistrationPageEnabled` | `boolean` | Yes | Whether or not the detailed registration page is enabled. |
| `lightRegistrationPageEnabled` | `boolean` | Yes | Whether or not the light registration page is enabled. |
| `recordingPublic` | `boolean` | Yes | Whether or not the recording is public. |
| `showInCompanyPage` | `boolean` | Yes | Whether or not the event is shown in the company page. |
| `pollsEnabled` | `boolean` | Yes | Whether or not the polls are enabled. |
| `questionsEnabled` | `boolean` | Yes | Whether or not the questions are enabled. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "livestorm",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "livestorm-update-event",
  arguments: {
    eventId: "Event ID",
    ownerId: "Owner ID",
  },
})
```

**TypeScript**

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "livestorm-update-event",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    livestorm: { authProvisionId: "apn_xxxxxxx" },
    eventId: "Event ID",
    ownerId: "Owner ID",
  },
})

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "livestorm-update-event",
    "configured_props": {
      "livestorm": { "authProvisionId": "apn_xxxxxxx" },
      "eventId": "Event ID",
      "ownerId": "Owner ID"
    }
  }'
```

---

- App: https://pipedream.com/apps/livestorm.md · All apps: https://pipedream.com/apps
