Apply a batch of atomic block/page operations
curl --request POST \
--url http://localhost:4200/ops \
--header 'Content-Type: application/json' \
--data '
{
"ops": "<unknown>",
"session": "<string>",
"siteId": "<string>",
"componentsManifest": {},
"siteCapabilities": {
"allowStructuralEdits": true,
"checkedAt": "<string>",
"reason": "<string>",
"manifestVersion": 123,
"blockCount": 4503599627370495
}
}
'import requests
url = "http://localhost:4200/ops"
payload = {
"ops": "<unknown>",
"session": "<string>",
"siteId": "<string>",
"componentsManifest": {},
"siteCapabilities": {
"allowStructuralEdits": True,
"checkedAt": "<string>",
"reason": "<string>",
"manifestVersion": 123,
"blockCount": 4503599627370495
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
ops: '<unknown>',
session: '<string>',
siteId: '<string>',
componentsManifest: {},
siteCapabilities: {
allowStructuralEdits: true,
checkedAt: '<string>',
reason: '<string>',
manifestVersion: 123,
blockCount: 4503599627370495
}
})
};
fetch('http://localhost:4200/ops', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4200",
CURLOPT_URL => "http://localhost:4200/ops",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ops' => '<unknown>',
'session' => '<string>',
'siteId' => '<string>',
'componentsManifest' => [
],
'siteCapabilities' => [
'allowStructuralEdits' => true,
'checkedAt' => '<string>',
'reason' => '<string>',
'manifestVersion' => 123,
'blockCount' => 4503599627370495
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:4200/ops"
payload := strings.NewReader("{\n \"ops\": \"<unknown>\",\n \"session\": \"<string>\",\n \"siteId\": \"<string>\",\n \"componentsManifest\": {},\n \"siteCapabilities\": {\n \"allowStructuralEdits\": true,\n \"checkedAt\": \"<string>\",\n \"reason\": \"<string>\",\n \"manifestVersion\": 123,\n \"blockCount\": 4503599627370495\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:4200/ops")
.header("Content-Type", "application/json")
.body("{\n \"ops\": \"<unknown>\",\n \"session\": \"<string>\",\n \"siteId\": \"<string>\",\n \"componentsManifest\": {},\n \"siteCapabilities\": {\n \"allowStructuralEdits\": true,\n \"checkedAt\": \"<string>\",\n \"reason\": \"<string>\",\n \"manifestVersion\": 123,\n \"blockCount\": 4503599627370495\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4200/ops")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ops\": \"<unknown>\",\n \"session\": \"<string>\",\n \"siteId\": \"<string>\",\n \"componentsManifest\": {},\n \"siteCapabilities\": {\n \"allowStructuralEdits\": true,\n \"checkedAt\": \"<string>\",\n \"reason\": \"<string>\",\n \"manifestVersion\": 123,\n \"blockCount\": 4503599627370495\n }\n}"
response = http.request(request)
puts response.read_bodyOperations
Apply a batch of atomic block/page operations
POST
/
ops
Apply a batch of atomic block/page operations
curl --request POST \
--url http://localhost:4200/ops \
--header 'Content-Type: application/json' \
--data '
{
"ops": "<unknown>",
"session": "<string>",
"siteId": "<string>",
"componentsManifest": {},
"siteCapabilities": {
"allowStructuralEdits": true,
"checkedAt": "<string>",
"reason": "<string>",
"manifestVersion": 123,
"blockCount": 4503599627370495
}
}
'import requests
url = "http://localhost:4200/ops"
payload = {
"ops": "<unknown>",
"session": "<string>",
"siteId": "<string>",
"componentsManifest": {},
"siteCapabilities": {
"allowStructuralEdits": True,
"checkedAt": "<string>",
"reason": "<string>",
"manifestVersion": 123,
"blockCount": 4503599627370495
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
ops: '<unknown>',
session: '<string>',
siteId: '<string>',
componentsManifest: {},
siteCapabilities: {
allowStructuralEdits: true,
checkedAt: '<string>',
reason: '<string>',
manifestVersion: 123,
blockCount: 4503599627370495
}
})
};
fetch('http://localhost:4200/ops', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "4200",
CURLOPT_URL => "http://localhost:4200/ops",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ops' => '<unknown>',
'session' => '<string>',
'siteId' => '<string>',
'componentsManifest' => [
],
'siteCapabilities' => [
'allowStructuralEdits' => true,
'checkedAt' => '<string>',
'reason' => '<string>',
'manifestVersion' => 123,
'blockCount' => 4503599627370495
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:4200/ops"
payload := strings.NewReader("{\n \"ops\": \"<unknown>\",\n \"session\": \"<string>\",\n \"siteId\": \"<string>\",\n \"componentsManifest\": {},\n \"siteCapabilities\": {\n \"allowStructuralEdits\": true,\n \"checkedAt\": \"<string>\",\n \"reason\": \"<string>\",\n \"manifestVersion\": 123,\n \"blockCount\": 4503599627370495\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:4200/ops")
.header("Content-Type", "application/json")
.body("{\n \"ops\": \"<unknown>\",\n \"session\": \"<string>\",\n \"siteId\": \"<string>\",\n \"componentsManifest\": {},\n \"siteCapabilities\": {\n \"allowStructuralEdits\": true,\n \"checkedAt\": \"<string>\",\n \"reason\": \"<string>\",\n \"manifestVersion\": 123,\n \"blockCount\": 4503599627370495\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:4200/ops")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"ops\": \"<unknown>\",\n \"session\": \"<string>\",\n \"siteId\": \"<string>\",\n \"componentsManifest\": {},\n \"siteCapabilities\": {\n \"allowStructuralEdits\": true,\n \"checkedAt\": \"<string>\",\n \"reason\": \"<string>\",\n \"manifestVersion\": 123,\n \"blockCount\": 4503599627370495\n }\n}"
response = http.request(request)
puts response.read_body⌘I