ReferenceSitesSites
Create a website from a template
Creates the site, its pages from the template and its free address. Nothing is published until the first publish.
Loading the API reference…
Creates the site, its pages from the template and its free address. Nothing is published until the first publish.
A practice API key or an OAuth access token, both presented as Authorization: Bearer <token>. The token itself names the practice, so no organization header is needed.
In: header
application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/sites" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "kind": "website", "templateKey": "practice" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "kind": "website", "name": "string", "status": "draft", "pausedBy": "practice", "adsLapsedAt": "2019-08-24T14:15:22Z", "url": "http://example.com", "freeUrl": "http://example.com", "liveVersionNumber": 1, "publishing": { "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7", "number": 1, "status": "queued", "lastError": "string", "createdAt": "2019-08-24T14:15:22Z" }, "pageCount": 0, "updatedAt": "2019-08-24T14:15:22Z"}1 <= length <= 120Value in
Value in
items <= 50[]1 <= length <= 63