Product SiteDocumentation Site

2.17. Error Handling

The following example attempts to update a read-only property, which creates an error.
Example 2.20. Update the virtual machine's id code and create an error
PUT /rhevm-api/vms/6efc0cfa-8495-4a96-93e5-ee490328cf48 HTTP/1.1
Accept: application/xml
Content-type: application/xml

<vm id="01010101-0101-0101-0101-010101010101"/>
The API returns the following error:
<fault>
    <reason>Broken immutability constraint</reason>
    <detail>Attempt to set immutable field: id</detail>
</fault>