Rolling upgrade

I am trying to update ES as a rolling upgrade for the 1st time. ( I am a new user) and I am reading the documentation and I come across this syntax that is another representation of JSON:

PUT /_cluster/settings
{
"transient": {
"cluster.routing.allocation.enable": "none"
}
}'

Source: Rolling upgrade | Elasticsearch Guide [8.11] | Elastic

I thought it was shorthand notation for the following:

curl -POST localhost:9200/elk_cluser_main/settings -d '
{
"transient": {
"cluster.routing.allocation.enable": "none"
}
}'

Obviously I am wrong. Can someone explain this shorthand notation?

It's just;

curl -XPUT host:9200/_cluster/settings -d '{
"transient": {
"cluster.routing.allocation.enable": "none"
}
}'

That syntax is Sense formatted.

Should have clicked on that sense hyperlink in the docs. Thanks!