(Quick Reference)
Service: Upsert
Description: This web service is used to insert an item group translation object to the database if it does not already exist, or update it.
URL with external_id:
https://BASE_URL/api/VERSION/itemGroupTranslations/reference/{itemGroupId}/{languageId}
Method: POST
Request content type: application/json
Parameters:
Name | Description | Type | Required | Example values |
---|
name | the name of the item group translated | String | Yes | |
description | description of the item group translated | String | No | |
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"
}
Failure case:response.status = 500
{
"error": "server_error",
"error_description": "Oops! Something went wrong..."
}