Exporting documents fails with Status 404, error "not_found" #6840
Unanswered
SuperSonnix71
asked this question in
Self Hosting
Replies: 1 comment
-
It needs to be a POST request |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone.
I'm trying to export documents from our Wiki using "api/documents.export" and i keep getting "not found" no matter how i try. I would appraciate all the help.
for example:
I can retrieve a specific document information using "documents.info"
{
"data": {
"id": "fd432eca-6c80-4206-8d7e-ea3391c4a95c", <------------------- Using this as document ID for export
"url": "/doc/XXX-documentation-5UgIUXXs1C",
"urlId": "5UgIUXXs1C",
"title": "XXX Documentation",
"emoji": null,
"text": " ",
"tasks": {
"completed": 0,
"total": 0
},
"createdAt": "2021-06-15T09:50:54.318Z",
"updatedAt": "2024-03-21T11:09:24.667Z",
"publishedAt": "2021-06-15T09:51:04.755Z",
"archivedAt": null,
"deletedAt": null,
"teamId": "6b4126ab-0cf7-4d2b-9cab-7944bfaddaf4",
"collaboratorIds": [],
"revision": 5,
"fullWidth": false,
"isCollectionDeleted": false
},
"status": 200,
"ok": true
}
~$ curl --request POST
--url https://XXX.XXX.com/api/documents.export
--header 'Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXX=='
--header 'content-type: application/json'
--data '{
"id": "fd432eca-6c80-4206-8d7e-ea3391c4a95c"
}'
{"ok":false,"error":"not_found","status":404,"message":"Resource not found"}
Beta Was this translation helpful? Give feedback.
All reactions