Request

PUT /tax/5231cccf4ab63c53dc90056c/
Content-Type: application/json
{
    "rate": "0.196", 
    "name": "TVA 19.6"
}

Response

202 Accepted
Content-Type: application/json
{
    "status": "ACTIVE", 
    "rate": "0.1960", 
    "resource_uri": "/api/v1/tax/5231cccf4ab63c53dc90056c/", 
    "id": "5231cccf4ab63c53dc90056c", 
    "name": "TVA 19.6"
}

Request

PUT /tax/5231cccf4ab63c53dc90056d/
Content-Type: application/xml
<object>
  <rate>0.196</rate>
  <name>TVA 19.6</name>
</object>

Response

202 Accepted
Content-Type: application/xml; charset=utf-8
<object>
  <status>ACTIVE</status>
  <rate>0.1960</rate>
  <id>5231cccf4ab63c53dc90056d</id>
  <name>TVA 19.6</name>
  <resource_uri>/api/v1/tax/5231cccf4ab63c53dc90056d/</resource_uri>
</object>

Request

PUT /tax/5231cccf4ab63c53dc90056e/
Content-Type: text/yaml
{name: !!python/unicode 'TVA 19.6', rate: !!python/unicode '0.196'}

Response

202 Accepted
Content-Type: text/yaml; charset=utf-8
{id: !!python/unicode '5231cccf4ab63c53dc90056e', name: !!python/unicode 'TVA 19.6',
rate: !!python/unicode '0.1960', resource_uri: !!python/unicode '/api/v1/tax/5231cccf4ab63c53dc90056e/',
status: !!python/unicode 'ACTIVE'}