Convert Source To Space
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/convert \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"source_id": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/convert"
payload = { "source_id": "<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({source_id: '<string>'})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/convert', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"address": "<string>",
"object": "space",
"level": "<string>",
"page_count": 123,
"created_at": "<string>",
"updated_at": "<string>"
}Spaces
Convert Source To Space
Turn a source written in AGO into a space: each of its documents gets a path.
POST
/
api
/
v1
/
spaces
/
convert
Convert Source To Space
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/convert \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"source_id": "<string>"
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/convert"
payload = { "source_id": "<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({source_id: '<string>'})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/convert', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "<string>",
"name": "<string>",
"address": "<string>",
"object": "space",
"level": "<string>",
"page_count": 123,
"created_at": "<string>",
"updated_at": "<string>"
}Body
application/json
