POST /knowledge/documents/{id}/move
Updated Oct 1, 20261 minute read
Move a document
Which folder, and where on it. folderId: null is the library's top level. order shares one scale with siblings; the midpoint of the new neighbors keeps everything else where it was.
Part of Knowledge.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | A document id. |
Request body
application/json, required.
| Field | Type | Required | Description |
|---|---|---|---|
folderId | any | Yes | |
order | number | Yes |
Responses
| Status | Description |
|---|---|
200 | Done. |
400 | The request is malformed, and the message names the field. |
401 | The bearer token is missing, revoked, or expired. |
404 | Not one of yours, or not there at all. |
429 | Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits. |
200 body
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | No |
Example response
{
"ok": true
}Example request
curl -X POST https://api.median.sh/v1/knowledge/documents/id/move \
-H "Authorization: Bearer $BEARER_AUTH"