Import Wiki
curl --request POST \
--url https://omnicommerce.ai/api/v1/wiki/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"files": [
{
"markdown": "<string>",
"path": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({files: [{markdown: '<string>', path: '<string>'}]})
};
fetch('https://omnicommerce.ai/api/v1/wiki/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/wiki/import"
payload = { "files": [
{
"markdown": "<string>",
"path": "<string>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"warnings": [
"<string>"
],
"recommendations": [
"<string>"
],
"links": {},
"data": {
"created": 123,
"updated": 123,
"unchanged": 123,
"failed": 123,
"results": [
{
"path": "<string>",
"title": "<string>",
"outcome": "created",
"pageId": "<string>",
"error": "<string>"
}
]
},
"jobId": "<string>"
}Wiki
Import Wiki
Create or update General pages from an OKF v0.3 bundle. Requires documents:write. Send the files array returned by the export. Use markdown for UTF-8 text files and base64 for binary assets. Bundle-relative links resolve to pages in the destination organization.
Concepts can update a General page by its local page ID, imported path, or matching title. Re-importing the same export is idempotent. Valid concepts and supporting files are saved in one transaction, with an outcome per concept. Standalone Markdown and earlier exports are also accepted.
POST
/
api
/
v1
/
wiki
/
import
Import Wiki
curl --request POST \
--url https://omnicommerce.ai/api/v1/wiki/import \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"files": [
{
"markdown": "<string>",
"path": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({files: [{markdown: '<string>', path: '<string>'}]})
};
fetch('https://omnicommerce.ai/api/v1/wiki/import', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/wiki/import"
payload = { "files": [
{
"markdown": "<string>",
"path": "<string>"
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"warnings": [
"<string>"
],
"recommendations": [
"<string>"
],
"links": {},
"data": {
"created": 123,
"updated": 123,
"unchanged": 123,
"failed": 123,
"results": [
{
"path": "<string>",
"title": "<string>",
"outcome": "created",
"pageId": "<string>",
"error": "<string>"
}
]
},
"jobId": "<string>"
}Authorizations
Body
application/json
Response
Import result.