I am working on creating an Magento REST API which passes values to dynamic rows of Stores->config. Dynamic rows were already created through frontend & backend Models.
I just need to insert values through API
Here is a snippet of code I tried
$values=[
'service'=>'test label',
'token'=>'1234567890',
'value'=>1
];
$this->_configWriter->save('integration/general/tokens',$values,ScopeConfigInterface::SCOPE_TYPE_DEFAULT,0);
But the values are not getting populated. Any help would be appreciated