Update Wiki Page
curl --request PATCH \
--url https://omnicommerce.ai/api/v1/wiki/pages/{pageId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
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}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(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
Update Wiki Page
Save a new revision. Requires documents:write. Send only the fields that change; aliases and appliesTo replace the existing lists.
Pass baseRevisionNumber to refuse the update with 409 if the page changed since you read it. status archives or restores the page. restoreRevisionNumber brings back an earlier revision as the newest one and ignores other fields.
PATCH
/
api
/
v1
/
wiki
/
pages
/
{pageId}
Update Wiki Page
curl --request PATCH \
--url https://omnicommerce.ai/api/v1/wiki/pages/{pageId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
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}"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(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
Updated wiki page.