Archive Wiki Page
curl --request DELETE \
--url https://omnicommerce.ai/api/v1/wiki/pages/{pageId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/wiki/pages/{pageId}', 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/{pageId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, 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
Archive Wiki Page
Archive the page. Requires documents:write. Agents stop using it and it leaves search; its history and names are kept, and PATCH with status active restores it.
DELETE
/
api
/
v1
/
wiki
/
pages
/
{pageId}
Archive Wiki Page
curl --request DELETE \
--url https://omnicommerce.ai/api/v1/wiki/pages/{pageId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.ai/api/v1/wiki/pages/{pageId}', 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/{pageId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, 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
Response
Archived wiki page.