PUBLIC API
Doc
Import Content
1min
code examples curl location 'https //app archbee com/api/public api/import content' \\ \ header 'accept application/json' \\ \ header 'content type multipart/form data' \\ \ form 'apikey="21 character string0"' \\ \ form 'docspaceid="21 character string0"' \\ \ form 'file="@markdowns zip"' \\ \ form 'type="markdown"'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "multipart/form data"); var formdata = new formdata(); formdata append("apikey", "21 character string0"); formdata append("docspaceid", "21 character string0"); formdata append("file", "@markdowns zip"); formdata append("type", "markdown"); var requestoptions = { method 'post', headers myheaders, body formdata, redirect 'follow' }; fetch("https //app archbee com/api/public api/import content", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "net/http" url = uri("https //app archbee com/api/public api/import content") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "multipart/form data" form data = \[\['apikey', file open('undefined')],\['docspaceid', file open('undefined')],\['file', file open('undefined')],\['type', file open('undefined')]] request set form form data, 'multipart/form data' response = https request(request) puts response read body import requests url = "https //app archbee com/api/public api/import content" payload = {} files=\[ ] headers = { 'accept' 'application/json', 'content type' 'multipart/form data' } response = requests request("post", url, headers=headers, data=payload, files=files) print(response text) responses // import ok status { "status" "ok", "data" { "docid" "21 character string0" } }// invalid request { "status" "not ok", "messages" \[ "some error message" ] }
🤔
Have a question?
Our super-smart AI,knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.