v1
latestOpenAPI 3.0.02026-07-14198572488.4 KBSites
Create new site
Endpoint that can be used to create a new site.
post/v1/sites
Request body
Example request
{
"location": 1,
"admin_username": "superlongadminusername",
"admin_password": "b38yt3M#ORJ#nu3gh3irj3hrug###D%",
"admin_email": "email@domain.tld",
"multisite": true,
"template_id": "2df39219-f15e-4ba9-82b2-09bf585a19bc",
"install_plugins": "awesome-plugin,great-plugin,ok-plugin",
"sub_path": "blog",
"label": "agencypartner1::site1::abcd",
"metadata": {
"key": "value"
},
"template_replacements": [
{
"key": "__contact_email__",
"value": "hello@rocket.net"
}
]
}Response
OK
Example response
{
"success": true,
"errors": [],
"messages": []
}