SharePoint Modern Client Side Page – Author is wrong

I used the below rest API to create a client side page from a template.‘/sites/xxx/SitePages/templates/MyTemplate.aspx’)/copyto(strnewurl=’/sites/xxx/SitePages/MyFolder/NewPage.aspx’,boverwrite=false)

Problem: Assume John created the Template. Tim creates a page using the template, now the Author field is showing John but Editor is showing Tim. Ideally Tim has to be both Author and Editor. I tried passing digest value in header as well but no luck.