Create a Model Action
post
/rest/v19/allProductFamilySetups/{allProdFamsVarName}/productFamilies/{prodFamVarName}/productLines/{prodLineVarName}/models/{modelVarName}/_actions
Use this endpoint to create an action for the specified Model.
Request
Supported Media Types
- application/json
Path Parameters
-
allProdFamsVarName(required): string
Variable Name
-
modelVarName(required): string
Variable Name of the Product Line
-
prodFamVarName(required): string
Variable Name
-
prodLineVarName(required): string
Variable Name of the Product Line
Root Schema : Configuration Actions
Type:
objectTitle:
Show Source
Configuration Actions-
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:
DescriptionDescription of the Config Action -
label:
string
Title:
Action NameName of the Config Action -
refType:
object Reference Type
Title:
Reference TypeType of the Reference -
status:
object Config Action Status
Title:
Config Action StatusStatus of Config Action -
variableName:
string
Title:
Variable NameVariable Name of the Config Action
Nested Schema : Reference Type
Type:
objectTitle:
Reference TypeType of the Reference
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Config Action Status
Type:
objectTitle:
Config Action StatusStatus of Config Action
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Response
Supported Media Types
- application/json
Default Response
Root Schema : Configuration Actions
Type:
objectTitle:
Show Source
Configuration Actions-
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:
DescriptionDescription of the Config Action -
id:
integer
Title:
IdPrimary Key of the resource -
label:
string
Title:
Action NameName of the Config Action -
refType:
object Reference Type
Title:
Reference TypeType of the Reference -
status:
object Config Action Status
Title:
Config Action StatusStatus of Config Action -
userAddedFirstName:
string
Title:
User Added First NameFirst Name of the user who created the record -
userAddedLastName:
string
Title:
User Added Last NameLast Name of the user who created the record -
userModifiedFirstName:
string
Title:
User Modified First NameFirst Name of the user who modified the record -
userModifiedLastName:
string
Title:
User Modified Last NameLast Name of the user who modified the record -
variableName:
string
Title:
Variable NameVariable Name of the Config Action
Nested Schema : Reference Type
Type:
objectTitle:
Reference TypeType of the Reference
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Nested Schema : Config Action Status
Type:
objectTitle:
Config Action StatusStatus of Config Action
Show Source
-
displayValue:
string
Title:
Display ValueTranslated display name of the type for which fixed list of values can be defined. -
id:
integer
Title:
IdPrimary Key of the fixed list of value resource. -
lookupCode:
string
Title:
Lookup CodeLanguage independent code of the fixed list of value.
Examples
The following example shows how to create a new Model action 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/allProductFamilySetups/_allProductFamilies/productFamilies/visionVehicles/productLines/consumerVehicles/models/sUV/_actions
Request Body Sample
{
"variableName": "selectAll",
"refType": {
"displayValue": "Model"
},
"label": "Select All",
"status": {
"lookupCode": "1"
}
}
Response Body Sample
{
"variableName": "selectAll",
"refType": {
"lookupCode": "4",
"displayValue": "Model",
"id": 36892932,
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_ACTION_REF_TYPE%22%7D%7D"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/lookupValues/36892932"
}
]
},
"description": null,
"userModifiedLastName": "User",
"dateModified": "2023-09-08T15:07:28.000Z",
"label": "Select All",
"dateAdded": "2023-08-22T20:39:01.000Z",
"userAddedFirstName": "Super",
"userModifiedFirstName": "Super",
"userAddedLastName": "User",
"id": 36955332,
"status": {
"lookupCode": "1",
"displayValue": "Active",
"id": 36892935,
"links": [{
"rel": "domain",
"href": "https://sitename.oracle.com/rest/v19/lookupValues?q=%7B%22lookupType%22%3A%7B%22%24eq%22%3A%22BM_CONFIG_ACTION_STATUS%22%7D%7D"
}, {
"rel": "canonical",
"href": "https://sitename.oracle.com/rest/v19/lookupValues/36892935"
}
]
},
"links": [{
"rel": "self",
"href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/visionVehicles/productLines/consumerVehicles/models/sUV/_actions/selectAll"
}, {
"kind": "",
"rel": "child",
"name": "translations",
"href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/visionVehicles/productLines/consumerVehicles/models/sUV/_actions/selectAll/translations"
}, {
"rel": "parent",
"href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/visionVehicles/productLines/consumerVehicles/models/sUV"
}
]
}