Create Wiki Page
curl --request POST \
--url https://omnicommerce.ai/api/v1/wiki/pages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>'})
};
fetch('https://omnicommerce.ai/api/v1/wiki/pages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/wiki/pages"
payload = { "title": "<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": {
"id": "<string>",
"organizationId": "<string>",
"title": "<string>",
"summary": "<string>",
"body": "<string>",
"status": "active",
"systemDefined": true,
"stale": true,
"appliesTo": [
{
"type": "store",
"id": "<string>",
"name": "<string>"
}
],
"labels": [
{
"label": "<string>",
"labelType": "pref",
"language": "<string>"
}
],
"revisionNumber": 123,
"lastConfirmedAt": "<string>",
"reviewBy": "<string>",
"indexStatus": "pending",
"createdAt": "<string>",
"updatedAt": "<string>",
"editors": [
"<string>"
],
"links": [
{
"id": "<string>",
"title": "<string>",
"summary": "<string>"
}
],
"backlinks": [
{
"id": "<string>",
"title": "<string>",
"summary": "<string>"
}
]
},
"jobId": "<string>"
}Wiki
Create Wiki Page
Create a wiki page. Requires documents:write. The page is saved directly; the approval card applies only to changes an agent proposes in chat.
Titles and aliases are unique within the organization. Link other pages in the body as [[Page title]]. The page is findable by name at once; fragment, meaning and graph search follow within about a minute.
POST
/
api
/
v1
/
wiki
/
pages
Create Wiki Page
curl --request POST \
--url https://omnicommerce.ai/api/v1/wiki/pages \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({title: '<string>'})
};
fetch('https://omnicommerce.ai/api/v1/wiki/pages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.ai/api/v1/wiki/pages"
payload = { "title": "<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": {
"id": "<string>",
"organizationId": "<string>",
"title": "<string>",
"summary": "<string>",
"body": "<string>",
"status": "active",
"systemDefined": true,
"stale": true,
"appliesTo": [
{
"type": "store",
"id": "<string>",
"name": "<string>"
}
],
"labels": [
{
"label": "<string>",
"labelType": "pref",
"language": "<string>"
}
],
"revisionNumber": 123,
"lastConfirmedAt": "<string>",
"reviewBy": "<string>",
"indexStatus": "pending",
"createdAt": "<string>",
"updatedAt": "<string>",
"editors": [
"<string>"
],
"links": [
{
"id": "<string>",
"title": "<string>",
"summary": "<string>"
}
],
"backlinks": [
{
"id": "<string>",
"title": "<string>",
"summary": "<string>"
}
]
},
"jobId": "<string>"
}Authorizations
Body
application/json
Response
Created wiki page.