SetupOnboardingController_installModules
POST
/setup/v1/modules/install
const url = 'https://your-store.example.com/setup/v1/modules/install';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"moduleIds":["example"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://your-store.example.com/setup/v1/modules/install \ --header 'Content-Type: application/json' \ --data '{ "moduleIds": [ "example" ] }'Request Body required
Section titled “Request Body required ” Media type application/json
object
moduleIds
required
Array<string>
Example generated
{ "moduleIds": [ "example" ]}