Create a Product Line Action

post

/rest/v19/allProductFamilySetups/{allProdFamsVarName}/productFamilies/{prodFamVarName}/productLines/{prodLineVarName}/_actions

Use this endpoint to create a Product Line action.

Request

Supported Media Types
Path Parameters
Body ()
Root Schema : Configuration Actions
Type: object
Title: Configuration Actions
Show Source
Nested Schema : Reference Type
Type: object
Title: Reference Type
Type of the Reference
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Config Action Status
Type: object
Title: Config Action Status
Status of Config Action
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Back to Top

Response

Supported Media Types

Default Response

Body ()
Root Schema : Configuration Actions
Type: object
Title: Configuration Actions
Show Source
Nested Schema : Reference Type
Type: object
Title: Reference Type
Type of the Reference
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Nested Schema : Config Action Status
Type: object
Title: Config Action Status
Status of Config Action
Show Source
  • Title: Display Value
    Translated display name of the type for which fixed list of values can be defined.
  • Title: Id
    Primary Key of the fixed list of value resource.
  • Title: Lookup Code
    Language independent code of the fixed list of value.
Back to Top

Examples

The following example shows how to create a new Product Line 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/_actions

Request Body Sample

{
  "variableName": "selectAllpl",
  "refType": {
    "displayValue": "Product Line"
  },
  "label": "Select All",
  "status": {
    "lookupCode": "1"
  }
}

Response Body Sample

{
  "variableName": "selectAllpl",
  "refType": {
    "lookupCode": "3",
    "displayValue": "Product Line",
    "id": 36892931,
    "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/36892931"
      }
    ]
  },
  "description": null,
  "userModifiedLastName": "User",
  "dateModified": "2023-09-08T23:22:22.000Z",
  "label": "Select All",
  "dateAdded": "2023-09-08T23:22:22.000Z",
  "userAddedFirstName": "Super",
  "userModifiedFirstName": "Super",
  "userAddedLastName": "User",
  "id": 36975032,
  "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/rest/v19/lookupValues/36892935"
      }
    ]
  },
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/visionVehicles/productLines/consumerVehicles/_actions/selectAllpl"
    }, {
      "kind": "",
      "rel": "child",
      "name": "translations",
      "href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/visionVehicles/productLines/consumerVehicles/_actions/selectAllpl/translations"
    }, {
      "rel": "parent",
      "href": "https://sitename.oracle.com/rest/v19/allProductFamilySetups/_allProductFamilies/productFamilies/visionVehicles/productLines/consumerVehicles"
    }
  ]
}
Back to Top