v6

latestOpenAPI 3.0.0raw.githubusercontent.com2024-10-187525179.6 KB
Documents

Move a document

Move a document to a new location or collection. If no parent document is provided, the document will be moved to the collection root.

post/documents.move

Request body

idstring required

Unique identifier for the document. Either the UUID or the urlId is acceptable.

collectionIdstring uuid
parentDocumentIdstring uuid

Example request

{
  "id": "hDYep1TPAM"
}

Response

OK

Example response

{
  "data": {
    "documents": [
      {
        "title": "🎉 Welcome to Acme Inc",
        "emoji": "🎉",
        "text": "…",
        "urlId": "hDYep1TPAM",
        "collaborators": [
          {
            "name": "Jane Doe"
          }
        ],
        "createdBy": {
          "name": "Jane Doe"
        },
        "updatedBy": {
          "name": "Jane Doe"
        }
      }
    ],
    "collections": [
      {
        "name": "Human Resources",
        "index": "P",
        "color": "#123123"
      }
    ]
  }
}