Create Theme through Rest Admin API

While using the Create theme from Rest Admin API, I went through documentation: https://shopify.dev/docs/api/admin-rest/2023-10/resources/theme#create-2020-01

I am facing issue while creating theme that is due to the url of src that is not working: “src”: “http://themes.shopify.com/theme.zip”.

I am getting error:

{
errors: {
src: [
‘The file does not exist - https://themes.shopify.com/theme.zip
]
}
}

Please Find attachments.

Hi Pamahajan,

I believe that http://themes.shopify.com/theme.zip URL is just a placeholder in the docs example - you’ll need to replace this with a publicly accessible URL where your theme’s zip file is stored.

I have tried adding a sharepoint url. But that too is not supported. Link: shopifyTheme.zip

Is that link publicly available? I can’t seem to access a theme zipfile from it.