As per the documentation in Redoc https://magento.redoc.ly/2.3.6-admin/tag/products#operation/catalogProductRepositoryV1SavePost, the main key 'product' holds all the product information, including the attribute values and the options definition.
Your payload should look like this
Try using the endpoint POST /rest/default/V1/products/attribute-sets/attributes with a payload like this:
Note that my attribute set ID is 4 which is the 'Default' attribute set and the attribute ...
I faced same behavior recently, I removed some blocks and containers of XML layout. I was looking for get only a piece of a page without anything else (with update handle).
but instead of add a new block I just:
<move element="formkey" destination="myContainerOrMyBlock"/>
because I was defined in theme default.xml:
I did face a similar issue with the Collections.
I fixed it by changing Collection to CollectionFactory.
Earlier I was using Anshu\Custom\Model\ResourceModel\CustomData\Collection in Constructor DI
To fix the issue, I switched to Anshu\Custom\Model\ResourceModel\CustomData\CollectionFactory
This may be because the Magento2 is loading the collection from ...
You can add this code to your success.phtml page to get the order total
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$order = $objectManager->create('Magento\Sales\Model\Order')->loadByIncrementId($block->getOrderId());
$total = $order->getGrandTotal(); ?>
<?php echo $total ?>
If anyone encounders a "stuck" indexer ( probably after a failed import or something like that ), a _cl tables crear may be wise
This article explains the process by clearing the _cl tabled
after that you may
php bin/magento indexer:reset
php bin/magento indexer:reindex