---
title: "Old API for Creating A Floor"
method: POST
path: "/floors"
tags: ["Floor"]
deprecated: true
---

# Old API for Creating A Floor

`POST /floors`

> **Deprecated.**

## Request body

- FloorCreateOldModel
  - `content` string, required
  - `hole_id` integer
  - `reply_to` integer — id of the floor to which replied
  - `special_tag` string — Admin and Operator only

## Response `201`

Created

- FloorCreateOldResponse
  - `data` ModelsFloor
    - `anonyname` string — a random username
    - `content` string — content of the floor, no more than 15000, should be sensitive checked, no more than 10000 in frontend
    - `deleted` boolean — whether the floor is deleted
    - `dislike` integer — dislike number
    - `disliked` boolean — whether the user has disliked the floor
    - `floor_id` integer — old version compatibility
    - `fold` string[] — fold reason, for v1
    - `fold_v2` string — fold reason
    - `hole_id` integer — the hole it belongs to
    - `id` integer — / saved fields
    - `is_actual_sensitive` boolean — manual sensitive check
    - `is_me` boolean — whether the user is the author of the floor
    - `is_sensitive` boolean — auto sensitive check
    - `like` integer — like number
    - `liked` boolean — whether the user has liked the floor
    - `mention` ModelsFloor[] — many to many mentions
    - `modified` integer — the modification times of floor.content
    - `ranking` integer — the ranking of this floor in the hole
    - `reply_to` integer — floor_id that it replies to, for dialog mode, in the same hole
    - `sensitive_detail` string — auto sensitive check detail
    - `special_tag` string — additional info, like "树洞管理团队"
    - `time_created` string
    - `time_updated` string
  - `message` string

---

[API](https://skmtc.net/opentreehole/apis/open-tree-hole.md) · [All operations](https://skmtc.net/opentreehole/apis/open-tree-hole/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opentreehole/open-tree-hole/revisions/a91f11ffe9a4/schema)
