Median

POST /knowledge/folders/{id}/move

Updated Oct 1, 20261 minute read

Move a folder

Same rules as dragging the shelf: it cannot move into itself or anything inside itself, and the whole stack has to clear the three level limit.

Part of Knowledge.

Parameters

NameInTypeRequiredDescription
idpathstringYesA folder id.

Request body

application/json, required.

FieldTypeRequiredDescription
parentIdanyYes
ordernumberYes

Responses

StatusDescription
200Done.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
404Not one of yours, or not there at all.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
okbooleanNo

Example response

{
  "ok": true
}

Example request

curl -X POST https://api.median.sh/v1/knowledge/folders/id/move \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc