---
title: "POST /api/v1/spaces/convert"
method: POST
path: "/api/v1/spaces/convert"
---

# POST /api/v1/spaces/convert

`POST /api/v1/spaces/convert`

## Request

- Base URL: `https://falconer.com` (the document declares no server; this is the origin it was published from)
- URL: `https://falconer.com/api/v1/spaces/convert`
- Auth: none declared

## Headers

- `x-organization-id` string: Required when using OAuth bearer tokens.

## Request body

- ConvertFolderToSpaceRequest
  - `folderId` integer, required

## Response `201`

The folder is now a Space.

- Space
  - `id` integer, required
  - `folderId` integer, required: The Space root folder's ID.
  - `name` string, required
  - `description` string, nullable, required
  - `icon` string, nullable, required
  - `isRepoSynced` boolean, required
  - `hasDocsSite` boolean, required

## Other responses

- `400`: Bad request
- `403`: Only organization owners can create Spaces
- `404`: Folder not found

---

[API](https://skmtc.dev/falconer/apis/falconer-public-api.md) · [All operations](https://skmtc.dev/falconer/apis/falconer-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/falconer/apis/falconer-public-api/revisions/7b303b7ddf6a?raw)
