Edit Space Page
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/pages/edit \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"address": "<string>",
"old_string": "<string>",
"new_string": "<string>",
"base_hash": "<string>",
"replace_all": false,
"summary": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/pages/edit"
payload = {
"address": "<string>",
"old_string": "<string>",
"new_string": "<string>",
"base_hash": "<string>",
"replace_all": False,
"summary": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
old_string: '<string>',
new_string: '<string>',
base_hash: '<string>',
replace_all: false,
summary: '<string>'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/pages/edit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"address": "<string>",
"space": "<string>",
"title": "<string>",
"content_hash": "<string>",
"created": true,
"changed": true,
"object": "space_page",
"path": "<string>",
"updated_at": "<string>",
"version_number": 123,
"replacements": 123
}{
"id": "<string>",
"status": "<string>",
"address": "<string>",
"page": {
"id": "<string>",
"address": "<string>",
"space": "<string>",
"title": "<string>",
"object": "space_page",
"path": "<string>",
"updated_at": "<string>"
},
"summary": "<string>",
"proposed_by": {
"actor_type": "<string>",
"actor_label": "",
"user": "<string>"
},
"object": "space_change_proposal",
"base_hash": "<string>",
"created_at": "<string>",
"reviewed_at": "<string>",
"reviewed_by": "<string>",
"review_notes": "<string>",
"applied": true,
"message": "<string>",
"original_content": "<string>",
"proposed_content": "<string>",
"content_hash": "<string>",
"version_number": 123
}Spaces
Edit Space Page
Replace an exact string in a page, if it still has the content_hash you read. With propose access: 202.
POST
/
api
/
v1
/
spaces
/
pages
/
edit
Edit Space Page
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/pages/edit \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"address": "<string>",
"old_string": "<string>",
"new_string": "<string>",
"base_hash": "<string>",
"replace_all": false,
"summary": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/pages/edit"
payload = {
"address": "<string>",
"old_string": "<string>",
"new_string": "<string>",
"base_hash": "<string>",
"replace_all": False,
"summary": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
old_string: '<string>',
new_string: '<string>',
base_hash: '<string>',
replace_all: false,
summary: '<string>'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/pages/edit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"address": "<string>",
"space": "<string>",
"title": "<string>",
"content_hash": "<string>",
"created": true,
"changed": true,
"object": "space_page",
"path": "<string>",
"updated_at": "<string>",
"version_number": 123,
"replacements": 123
}{
"id": "<string>",
"status": "<string>",
"address": "<string>",
"page": {
"id": "<string>",
"address": "<string>",
"space": "<string>",
"title": "<string>",
"object": "space_page",
"path": "<string>",
"updated_at": "<string>"
},
"summary": "<string>",
"proposed_by": {
"actor_type": "<string>",
"actor_label": "",
"user": "<string>"
},
"object": "space_change_proposal",
"base_hash": "<string>",
"created_at": "<string>",
"reviewed_at": "<string>",
"reviewed_by": "<string>",
"review_notes": "<string>",
"applied": true,
"message": "<string>",
"original_content": "<string>",
"proposed_content": "<string>",
"content_hash": "<string>",
"version_number": 123
}Body
application/json
