Replace Space Page
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/pages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"address": "<string>",
"content": "<string>",
"base_hash": "<string>",
"summary": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/pages"
payload = {
"address": "<string>",
"content": "<string>",
"base_hash": "<string>",
"summary": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
content: '<string>',
base_hash: '<string>',
summary: '<string>'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/pages', 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
Replace Space Page
Replace a page’s whole content, if it still has the content_hash you read. With propose access: 202 proposal.
PUT
/
api
/
v1
/
spaces
/
pages
Replace Space Page
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/pages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"address": "<string>",
"content": "<string>",
"base_hash": "<string>",
"summary": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/pages"
payload = {
"address": "<string>",
"content": "<string>",
"base_hash": "<string>",
"summary": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: '<string>',
content: '<string>',
base_hash: '<string>',
summary: '<string>'
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/pages', 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
