---
title: "Add files to a session"
method: POST
path: "/v1/events/{eventId}/sessions/{sessionId}/files"
tags: ["Sessions"]
---

# Add files to a session

`POST /v1/events/{eventId}/sessions/{sessionId}/files`

## Request

- The document declares no server URL.
- Auth: none required
- TypeScript: <https://skmtc.dev/zuddl/apis/zuddl-webhook-documentation/docs/v1/events/:eventId/sessions/:sessionId/files/post.ts> (a function with typed inputs; its response is checked against the schema)

Use this endpoint to add files to a session for a specific event type in your Zuddl organization.

Required API key scopes: `WRITE`

**This API can only be called with an access key that was generated for Backend usage.**

## Path parameters

- `eventId` string, required
- `sessionId` string, required

## Request body

- OrgEventsAppDomainApiProductEventSessionDtosSessionAddFileRequest[]
  - `fileName` string, required: File name
  - `fileUrl` string, required: Url of the file

## Response `200`

Files added successfully

- OrgEventsAppDomainApiProductEventSessionDtosSessionDetailsFile: Files of the session
  - `fileId` string, uuid: Unique identifier of the file
  - `fileName` string: File name
  - `fileUrl` string: Url of the file

## Other responses

- `400`: Invalid session ID or event ID
- `401`: Unauthorized access to event
- `404`: Event not found

---

[API](https://skmtc.dev/zuddl/apis/zuddl-webhook-documentation.md) - [All operations](https://skmtc.dev/zuddl/apis/zuddl-webhook-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/zuddl/apis/zuddl-webhook-documentation/revisions/571c1d41e62a?raw)
