Auto-Generate Configuration Models
post
/rest/v19/bomItemSetups/actions/generateConfigurations
Use this endpoint to auto-generate configuration models in batch for all valid BOMs available in the BOM Item Definition table. New configuration models are based on the BOM structure. The first invocation generates and deploys configuration models for all valid BOMs. Subsequent invocations update the models by detecting new delta changes.
Request
Supported Media Types
- application/json
JSON payload containing deployFlag and reconstructBomMappings.
Root Schema : schema
Type:
object
Request payload for deploying auto-generated models
Show Source
-
deployFlag:
boolean
Set to true to deploy auto-generated models.
-
reconstructBomMappings:
boolean
Set to true to recreate BOM item mappings by deleting existing ones.
Response
Supported Media Types
- application/json
200 Response
Successful response containing taskId.
Root Schema : schema
Type:
object
Response containing the generated task ID
Show Source
-
taskId:
integer(int32)
ID of the task that is generated
Examples
The following example shows how to auto-generate configuration models 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/bomItemSetups/actions/generateConfigurations
Request Body Samples
{ "deployFlag": true, "reconstructBomMappings": false }
Response Body Sample
{"taskId": 12345}