---
title: "Create scene in collection"
method: POST
path: "/api/v1/collections/{collectionId}/scenes"
tags: ["collections", "scenes"]
---

# Create scene in collection

`POST /api/v1/collections/{collectionId}/scenes`

Create a new scene within a specific collection.

    This endpoint creates a scene with the specified metadata and assigns it to the given collection.

    **Use cases:**
    - Adding new scenes to a project or team collection
    - Automating scene creation for workflows
    - Integrating with external tools to populate collections

## Path parameters

- `collectionId` string, required

## Request body

- object
  - `name` string, required
  - `pinned` boolean, required

## Response `200`

This response returns the details of the newly created scene.

- object — This response returns the details of the newly created scene.
  - `metadata` object, required
    - `workspace` string, required
    - `name` string, required
    - `isUntitled` boolean
    - `created` string, required
    - `updated` string, required
    - `previewUrl` string, required
    - `previewFilename` string, required
    - `previewBackground` string, required
    - `isDeleted` boolean, required
    - `isPrivate` boolean, required
    - `creator` string, required
    - `updater` string, required
    - `sceneVersion` string, required
    - `contentEpoch` integer, required
    - `lastAcknowledgedVersion` integer
    - `linkSharing` union, required
      - 0
      - 1
      - 3
    - `readComments` boolean
    - `writeComments` boolean
    - `allowCalls` boolean
    - `collection` string, required
    - `updateCount` number, required
    - `revisionCount` number, required
    - `lastRevision` string, required
    - `totalElements` number, required
    - `deletedElements` number, required
    - `pinned` boolean, required
    - `hasNonDeletedFrames` boolean
    - `isSlidesSharingEnabled` boolean
    - `isWelcomeScene` boolean
    - `id` string, required
  - `readOnlyLinks` object[], required
    - `id` string, required
    - `scene` string, required
    - `workspace` string, required
    - `created` string, required
    - `updated` string, required
    - `updatedBy` string, required
    - `creator` string, required
    - `preview` string, required
    - `previewPath` string, required
    - `type` 'readonly', required
    - `status` union, required
      - 'active'
      - 'inactive'
    - `name` string, required
    - `data` object, required
      - `showTitle` boolean
      - `showMenu` boolean
      - `darkMode` boolean
      - `disableInteraction` boolean
      - `showDarkModeToggle` boolean
      - `showFrameOutlines` boolean
      - `x` number, required
      - `y` number, required
      - `width` number, required
      - `height` number, required
  - `sharedSlidesLinks` object[], required
    - `id` string, required
    - `scene` string, required
    - `workspace` string, required
    - `created` string, required
    - `updated` string, required
    - `updatedBy` string, required
    - `creator` string, required
    - `preview` string, required
    - `previewPath` string, required
    - `isActive` boolean, required
    - `type` 'slides', required
    - `data` object, required
      - `name` string, required
      - `showSlideTitle` boolean, required
      - `animateSlides` boolean, required
      - `disallowDownload` boolean
      - `autoPlaySlides` number

## Other responses

- `400` — This response indicates that the request was malformed or contained invalid parameters.
- `401` — This response indicates that the client must authenticate to access the requested resource.
- `403` — This response indicates that the client does not have permission to access the requested resource.
- `404` — This response indicates that the requested resource could not be found.

---

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