Create a Part Translation
post
/rest/v19/partSetups/{id}/translations
Use this endpoint to create translations for the specified CPQ part.
Request
Supported Media Types
- application/json
Path Parameters
-
id(required): integer
The unique identifier for the part.
Root Schema : Part Translation Setup Create Request Definitions
Type:
objectTitle:
Show Source
Part Translation Setup Create Request Definitions-
dateAdded:
string
Title:
Date AddedSystem field indicating the date on which the Resource was created. -
dateModified:
string
Title:
Date ModifiedSystem field indicating the date on which the Resource was last modified. -
description:
string
Title:
Translated descriptionTranslated description of the part. -
id:
integer
Title:
IdIdentifier for the resource -
language:
object Language
Title:
LanguageThe defined language of the rows translated columns. -
units:
string
Title:
Translated UnitsTranslated units of the part
Nested Schema : Language
Type:
objectTitle:
LanguageThe defined language of the rows translated columns.
Show Source
-
id:
integer
Title:
IdPrimary Key of the language resource. -
languageCode:
string
Title:
Language CodeUnique language code -
languageNumber:
integer
Title:
Language NumberUnique language number.
Response
Supported Media Types
- application/json
Default Response
Root Schema : Part Translation Setup Instance Definitions
Type:
objectTitle:
Show Source
Part Translation Setup Instance Definitions-
dateAdded:
string
Title:
Date AddedSystem field indicating the date on which the Resource was created. -
dateModified:
string
Title:
Date ModifiedSystem field indicating the date on which the Resource was last modified. -
description:
string
Title:
Translated descriptionTranslated description of the part. -
id:
integer
Title:
IdIdentifier for the resource -
language:
object Language
Title:
LanguageThe defined language of the rows translated columns. -
units:
string
Title:
Translated UnitsTranslated units of the part
Nested Schema : Language
Type:
objectTitle:
LanguageThe defined language of the rows translated columns.
Show Source
-
id:
integer
Title:
IdPrimary Key of the language resource. -
languageCode:
string
Title:
Language CodeUnique language code -
languageNumber:
integer
Title:
Language NumberUnique language number.
Examples
The following example shows how to create translations for the specified CPQ part by submitting a POST request to the REST resource using cURL. For more information about cURL, see Use cURL.
curl - X POST -H "Authorization: Bearer <token>" - H "Content-type: application/json" https://sitename.oracle.com/rest/v19/partSetups/38644116/translations
Request Body
{ "description": "L'entretien Premium couvre les inspections multipoints, ainsi que les
soins prventifs et le remplacement des lments normaux d'usure normale qui
ncessitent une attention priodique.", "language": { "languageNumber": 1,
"languageCode": "fr" } }Request Body
{
"description": "L'entretien Premium couvre les inspections multipoints, ainsi que les soins prventifs et le remplacement des lments normaux d'usure normale qui ncessitent une attention priodique.",
"dateModified": "2023-03-07T18:45:34.402Z",
"language": {
"languageNumber": 1,
"languageCode": "fr",
"id": 36329904,
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/languages"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/languages/36329904"
}
]
},
"id": 38852322,
"units": null,
"dateAdded": "2023-03-07T18:45:34.402Z",
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/partSetups/38644116/translations/38852322"
}
]
}