Create site script
documentedCreate a new site script.
POST {site_url}/_api/Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptUtility.CreateSiteScriptSite Designsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$site_url}}/_api/Microsoft.SharePoint.Utilities.WebTemplateExtensions.SiteScriptUtility.CreateSiteScript(Title=@title)?@title='{{$title}}'" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json; charset=utf-8" \
-H "Accept: application/json; odata.metadata=minimal" \
-H "OData-Version: 4.0" \
-d '{"$schema": "https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json", "actions": [{"verb": "applyTheme", "themeName": "{{$themeName}}"}], "bindata": { }, "version": 1 }'