I'm using the the admin API to make a restful PUT request to upload some file to theme folders.
I can successfully upload files to any folder other that the 'Layout' folder, which gives a 422 error. Uploading to assets, templates sections etc works perfectly.
I'm using the below PUT request and payload.
PUT /admin/api/2020-04/themes/{themeID}/assets.json
{
"asset": {
"key": "layout/themes-test.liquid",
"value": "The HTML FOR THEME.LIQUID"
}
}
Does the Layout folder require some special permissions for upload?
Thanks in advance.