<p>Kubernetes verison: 1.02  </p>

<p>PATCH /api/v1/namespaces/default/replicationcontrollers/test  </p>

<pre><code>body  
{"spec":  
{"replicas": 3}  
}  

response  
'{  
"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>

<p>Is this a bug for API?  </p>

<p>For PATCH to work you need to send one of the <a href="http://kubernetes.io/v1.0/docs/devel/api-conventions.html#patch-operations" rel="nofollow noreferrer">accepted content-type header values</a>.</p>
<p>Your example uses a <a href="https://www.rfc-editor.org/rfc/rfc7386" rel="nofollow noreferrer">merge patch</a>, so you should send:</p>
<pre><code>Content-Type: application/merge-patch+json
</code></pre>
