Request

PUT /item/5231cc864ab63c53dc900532/
Content-Type: application/json
{
    "description": "Item A", 
    "reference": "ITEM-A", 
    "tax": "/api/v1/tax/5231cc864ab63c53dc900531/", 
    "unit_price": "19.90", 
    "currency": "/api/v1/currency/5231cbd54ab63c53dc90046c/", 
    "type": "PRODUCT"
}

Response

202 Accepted
Content-Type: application/json
{
    "status": "ACTIVE", 
    "description": "Item A", 
    "reference": "ITEM-A", 
    "tax": "/api/v1/tax/5231cc864ab63c53dc900531/", 
    "unit_price": "19.90", 
    "currency": "/api/v1/currency/5231cbd54ab63c53dc90046c/", 
    "type": "PRODUCT", 
    "id": "5231cc864ab63c53dc900532", 
    "resource_uri": "/api/v1/item/5231cc864ab63c53dc900532/"
}

Request

PUT /item/5231cc864ab63c53dc900533/
Content-Type: application/xml
<object>
  <currency>/api/v1/currency/5231cbd54ab63c53dc90046c/</currency>
  <description>Item B</description>
  <reference>ITEM-B</reference>
  <tax>/api/v1/tax/5231cc864ab63c53dc900531/</tax>
  <type>PRODUCT</type>
  <unit_price>19.90</unit_price>
</object>

Response

202 Accepted
Content-Type: application/xml; charset=utf-8
<object>
  <status>ACTIVE</status>
  <description>Item B</description>
  <reference>ITEM-B</reference>
  <tax>/api/v1/tax/5231cc864ab63c53dc900531/</tax>
  <unit_price>19.90</unit_price>
  <currency>/api/v1/currency/5231cbd54ab63c53dc90046c/</currency>
  <type>PRODUCT</type>
  <id>5231cc864ab63c53dc900533</id>
  <resource_uri>/api/v1/item/5231cc864ab63c53dc900533/</resource_uri>
</object>

Request

PUT /item/5231cc864ab63c53dc900534/
Content-Type: text/yaml
{currency: !!python/unicode '/api/v1/currency/5231cbd54ab63c53dc90046c/', description: !!python/unicode 'Item
C', reference: !!python/unicode 'ITEM-C', tax: !!python/unicode '/api/v1/tax/5231cc864ab63c53dc900531/',
type: !!python/unicode 'PRODUCT', unit_price: !!python/unicode '19.90'}

Response

202 Accepted
Content-Type: text/yaml; charset=utf-8
{currency: !!python/unicode '/api/v1/currency/5231cbd54ab63c53dc90046c/', description: !!python/unicode 'Item
C', id: !!python/unicode '5231cc864ab63c53dc900534', reference: !!python/unicode 'ITEM-C',
resource_uri: !!python/unicode '/api/v1/item/5231cc864ab63c53dc900534/', status: !!python/unicode 'ACTIVE',
tax: !!python/unicode '/api/v1/tax/5231cc864ab63c53dc900531/', type: !!python/unicode 'PRODUCT',
unit_price: !!python/unicode '19.90'}