First you need to be setup on Team Management and a template created: Apply templates to booking pages - YouCanBook.me Support
From the API you can GET the template Id: https://api.youcanbook.me/v1/profiles?fields=subdomain,id
Then you can POST to https://api.youcanbook.me/v1/profiles
With the minimum:
{
“subdomain” : “{newsubdomain}”,
“templateId”: “{templateId}”
}
You can pass in any additional information you need to update for the page, like title and team members, whatever you want.
I thought this was pretty cool, so wanted to share it here.