---
title: "Run code"
method: POST
path: "/api/v1/presentations/{slug}/run"
tags: ["presentations"]
---

# Run code

`POST /api/v1/presentations/{slug}/run`

## Request

- Base URL: `https://easeweb.host`
- URL: `https://easeweb.host/api/v1/presentations/{slug}/run`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `sessionid`

Run code the way the Run button of a code block does, to check it: "sql", "mongodb", "redis" and "clickhouse" run in your own
database of the presentation (made from its database scripts; what you change stays in it), "python" and "bash"
in a sandbox without network that keeps nothing. The presentation itself does not change.

## Path parameters

- `slug` string, required: The presentation's slug (its address: /movie/<slug>/).

## Request body

- object
  - `lang` 'sql' | 'mongodb' | 'redis' | 'clickhouse' | 'python' | 'bash', required: Language of the code.
  - `code` string, required: The code (at most 20000 characters).
  - `reset` boolean: sql, mongodb, redis, clickhouse: first make your database again from the script of the presentation.

## Response `200`

OK

- object

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/easeweb/apis/easeweb-presentations-api.md) · [All operations](https://skmtc.dev/easeweb/apis/easeweb-presentations-api/llms.txt) · [OpenAPI document](https://skmtc.dev/easeweb/apis/easeweb-presentations-api/revisions/9f5566adb5d1?raw)
