Import a storefront
Makes a new storefront, as a draft, from one that was exported: the JSON document “Export a storefront” answers under storefront, sent as multipart/form-data in a field called file. Nothing in it is trusted: its design is rebuilt from the theme, and each of its files is checked. One thing wrong refuses all of it, and the refusal names the file. meta.imported says which storefront it became and how many problems its code has to be fixed before it can be published.
Needs the storefronts.write permission (Change Storefronts).
Authorizations
A secret API key, made under Developers in the dashboard: Authorization: Bearer shoply_sk_...
Path Parameters
The store's ID. A key reaches the store it was made in: GET /key answers which.
Body
The file.
Response
It worked.
Whether the request did what was asked.
Words for a person. Empty when it worked.
Why it was refused, as a word that does not change. Empty when it worked.
The thing asked for: an object, or for a list its rows.
For a paged list: how many pages there are.
For a paged list: how many rows there are in all.
Anything else the route answers beside the thing itself.

