(Quick Reference) Service: Create an item group translation

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

URL:

https://BASE_URL/api/VERSION/itemGroupTranslations

Method: POST

Request content type: application/json

Parameters:

NameDescriptionTypeRequiredExample values
name Stringyes 
description Stringno 
itemGroupId 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=201

{
  "id": 519,
  "itemGroupReference": "RG_01",
  "itemGroup": {
    "id": 1,
    "reference": "RG_01",
    "href": "/valomniav2/api/v2.1/itemGroups/1"
  },
  "name": "new ItemGroup1",
  "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": "itemGroupId parameter is missing"
}
{
  "error":"invalid_param_type",
  "error_description": "The type of parameter itemGroupId you provided is not valid for this request."
}
{
  "error": "language_error",
  "error_description": "Failed to "+operation+" the item group translation : incorrect language code"
}

Failure case:response.status = 404

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

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