<p>I want to use the RestApi to update the deployment.
and I test it with postman, but always got 415 back.</p>

<hr>

<p>the info is as follows:</p>

<p><strong>type:</strong>
PATCH</p>

<p><strong>url:</strong> <a href="https://k8sClusterUrl:6443/apis/extensions/v1beta1/namespaces/ns/deployments/peer0" rel="nofollow noreferrer">https://k8sClusterUrl:6443/apis/extensions/v1beta1/namespaces/ns/deployments/peer0</a></p>

<p><strong>header:</strong>  </p>

<pre><code>Authorization: bearer token  
Content-Type:application/json  
</code></pre>

<p><strong>body:</strong></p>

<pre><code>{
    "kind": "Deployment",
    "spec":
    {
        "template":
        {
            "spec":
            {
                "containers":[
                    {
                        "$setElementOrder/volumeMounts":[{"mountPath":"/host/var/run/"},{"mountPath":"/mnt"}],
                        "name":"peer0",
                        "image":"hyperledger/fabric-peer:x86_64-1.1.0"}
                ]
            }
        }
    }
}
</code></pre>

<p><strong>response:</strong></p>

<pre><code>{
    "kind": "Status",
    "apiVersion": "v1",
    "metadata": {},
    "status": "Failure",
    "message": "the server responded with the status code 415 but did not return more information",
    "details": {},
    "code": 415
}
</code></pre>

<hr>

<p>I have muti-containers in this pod, and only want to apply for the specific container: <code>peer0</code>.<br>
Any different for the <code>$setElementOrder</code> var?  </p>

<p><code>415</code> is invalid media type.</p>

<p>In this case, you should be setting the media type as <code>application/json+patch+json</code> (you can see this in the documentation <a href="https://kubernetes.io/docs/reference/federation/extensions/v1beta1/operations/" rel="nofollow noreferrer">here</a>) </p>
