#[Route(path: '/api/_action/system-config', name: 'api.action.core.save.system-config', defaults: ['_acl' => ['system_config:update', 'system_config:create', 'system_config:delete']], methods: ['POST'])]
public function saveConfiguration(Request
$request): JsonResponse
{ $salesChannelId =
$request->query->
get('salesChannelId'
);
if (!\
is_string($salesChannelId)) { $salesChannelId = null;
} $kvs =
$request->request->
all();
$this->systemConfig->
setMultiple($kvs,
$salesChannelId);
return new JsonResponse(null, Response::HTTP_NO_CONTENT
);
} /**
* @deprecated tag:v6.6.0 $context param will be required
*/
#[Route(path: '/api/_action/system-config/batch', name: 'api.action.core.save.system-config.batch', defaults: ['_acl' => ['system_config:update', 'system_config:create', 'system_config:delete']], methods: ['POST'])]
public function batchSaveConfiguration(Request
$request, ?Context
$context = null
): JsonResponse
{ if (!
$context) {