(Quick Reference) Service: Upsert

Description: This web service is used to insert an item category translation object to the database if it does not already exist, or update it.

URL with external_id:

https://BASE_URL/api/VERSION/itemCategoryTranslations/reference/{itemCategoryId}/{languageId}

Method: POST

Request content type: application/json

Parameters:

NameDescriptionTypeRequiredExample values
namethe name of the item category translatedStringYes 
descriptiondescription of the item category translatedStringNo 

Success Output

Success case: response.status=201
{
  "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"
}

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