Create Space Page
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/pages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"parent": "<string>",
"title": "<string>",
"content": ""
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/pages"
payload = {
"parent": "<string>",
"title": "<string>",
"content": ""
}
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({parent: '<string>', title: '<string>', content: ''})
};
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
}Spaces
Create Space Page
Create a page under an existing page or space root. The response gives its actual address.
POST
/
api
/
v1
/
spaces
/
pages
Create Space Page
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/pages \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"parent": "<string>",
"title": "<string>",
"content": ""
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/pages"
payload = {
"parent": "<string>",
"title": "<string>",
"content": ""
}
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({parent: '<string>', title: '<string>', content: ''})
};
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
}Body
application/json
Response
201 - application/json
Created
