(Quick Reference) Service: Update an item category translation

Description: Returns the updated item category translation in json format when successful. Returns a json response, describing the failure condition when unsuccessful.

URL:

https://BASE_URL/api/VERSION/itemCategoryTranslations/{id}

Method: POST

Request content type: application/json

Parameters:

NameDescriptionTypeRequiredExample values
name Stringyes 
description Stringno 
itemCategoryId Long/Stringyes 
languageISO language codeStringyesfr
useExternalIdBy default, it is set to false. set it to true if you want to use external ids.Booleannotrue , false

Success Output

Success case: response.status=200

{
  "id": 519,
  "itemCategoryReference": "R100",
  "itemCategory": {
    "id": 1,
    "reference": "R100",
    "href": "/valomniav2/api/v2.1/itemCategories/1"
  },
  "name": "new Cate",
  "description": "",
  "language": {
    "id": 3,
    "code": "en"
  },
  "organization": "entity1",
  "dateCreated": "2015-12-16T16:38:44Z",
  "lastUpdated": "2015-12-16T16:38:44Z"
}

Failure Output

Failure case:response.status = 400

{
  "error": "save_failed",
  "error_description": "Failed to save instance."
}

{
  "error": "missing_param",
  "error_description": "itemCategoryId parameter is missing"
}
{
  "error":"invalid_param_type",
  "error_description": "The type of parameter itemCategoryId you provided is not valid for this request."
}
{
  "error": "language_error",
  "error_description": "Failed to "+operation+" the item category translation : incorrect language code"
}

Failure case:response.status = 404

{
  "error": "not_found",
  "error_description": "The item category with the id 31888 doesn't exist."
}

Failure case:response.status = 500
{
  "error": "server_error",
  "error_description": "Oops! Something went wrong..."
}