Process a configuration
post
/fscmRestApi/scm/redwood/11.13.18.05/configurationRuntime
Creates or restores a configuration and executes the supplied operations and queries in step order.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Nested Schema : ConfigurationRequest
Type:
Show Source
object-
callingApplicationCode(required): string
The code that identifies the application creating or modifying the configuration, such as FOM for Fusion Order Management.
-
changeOrderNumber: string
The optional Commercial Change Order number whose in-flight model and rule revisions are used for evaluation instead of only the currently published production version.
-
configHeaderId: integer
(int64)
The header identifier of an existing configuration. When supplied with ConfigRevisionId, the service restores that configuration and executes the requested operations or queries in the restored context.
-
configRevisionId: integer
(int64)
The revision identifier of an existing configuration. Supply it with ConfigHeaderId to restore the configuration for validation, queries, or further changes.
-
configuratorPath: string
The internal configurator path of the root model.Supply it with configuratorPath to restore the configuration
-
customParameters: array
customParameters
Optional custom name-value pairs used while evaluating the configuration.
-
executionSteps: array
executionSteps
The ordered operations and read-only queries to execute. Query results reflect all operations and rule processing completed by earlier steps in the collection.
-
header: object
header
Additional Properties Allowed:
trueOptional order or quote header information used while evaluating the configuration. -
inventoryItemNumber(required): string
The item number of the root Configurator model to create or restore.
-
inventoryOrganizationCode(required): string
The code that identifies the inventory organization containing the model.
-
lineQuantity: number
The quantity of the root configuration model line.
-
requestDescription: string
The description of the configuration request.
-
requestId: integer
(int64)
The caller-assigned identifier used to correlate the configuration request with its response.
-
requestName: string
The name of the configuration request.
-
sessionEffectiveDate(required): string
(date-time)
The effective date and time used to resolve the applicable Configurator model version. Unless ChangeOrderNumber is supplied, operations use the production model effective on this date.
-
uomCode: string
The optional unit-of-measure code to use for the configuration model line.Example:
Ea -
validationMode: string
Default Value:
COLLECT_ALL_RESULTSAllowed Values:[ "COLLECT_ALL_RESULTS", "FAIL_FAST", "STRICT_NO_SIDE_EFFECTS" ]The optional processing and validation mode. FAIL_FAST stops at the first failed input or validation error and does not save a new configuration. COLLECT_ALL_RESULTS executes all steps, reports each step result, and saves the configuration with the successfully applied inputs; this is the default. STRICT_NO_SIDE_EFFECTS fails validation and does not save if processing introduces unrequested changes such as automatic defaults, automatic selections, or rule-driven selections outside the requested operations. STRICT_NO_SIDE_EFFECTS does not apply when explicit Select, Deselect, SetQuantity, or SetValue operations are supplied.
Nested Schema : customParameters
Type:
arrayOptional custom name-value pairs used while evaluating the configuration.
Show Source
Example:
[
{
"Value":"Op1-If1",
"Name":"SmartPartNumber"
},
{
"Value":12,
"Name":"CustomAttribute"
}
]Nested Schema : executionSteps
Type:
arrayThe ordered operations and read-only queries to execute. Query results reflect all operations and rule processing completed by earlier steps in the collection.
Show Source
Nested Schema : header
Type:
objectAdditional Properties Allowed:
trueOptional order or quote header information used while evaluating the configuration.
Example:
{
"CalculateTaxFlag":false,
"CalculateShippingChargesFlag":false,
"CalculatePricingChargesFlag":true,
"PricingStrategyId":"300100071623888"
}Nested Schema : ExecutionStep
Type:
Show Source
object-
nodePath: string
The fully qualified path of the configuration component, option, or transactional attribute targeted by the step. NodePath is required for the Select operation.
-
nodeProperties: array
nodeProperties
Minimum Number of Items:
1The evaluated component properties to return for a QUERY step. -
nodeValue:
ScalarValueType
A string, number, boolean, or null configuration value. SetValue uses this value for a transactional item attribute, Text Feature, Integer Feature, or Decimal Feature; queries use it for returned property values.
-
operation: string
Allowed Values:
[ "SetQuantity", "Select", "Deselect", "SetValue", "Validate", "Finish" ]The operation to perform. Select marks a selectable node as user selected. Deselect removes its selection. SetQuantity selects a quantity-enabled node when necessary and assigns its quantity; zero removes the instance. SetValue assigns a value to a transactional item attribute, Text Feature, Integer Feature, or Decimal Feature. Validate performs a standalone, logically non-mutating assessment and cannot be combined with other operations. Finish performs final validation, persists the configuration, closes the session, and must be the last operation. -
operationId: integer
(int32)
An optional caller-assigned integer that uniquely identifies the operation being performed.
-
overrideBehavior: string
Allowed Values:
[ "Cancel", "Override" ]Optional conflict behavior for an OPERATION step. Cancel reverts the operation when it introduces configuration conflicts, leaving the configuration unchanged for that step. -
quantity: number
The quantity to assign to a quantity-enabled component. It is required for SetQuantity and optional for Select. Setting the quantity to zero removes the instance.
-
stepId(required): integer
(int32)
The caller-assigned identifier used to correlate an execution step with its result. Steps are processed in collection order.
-
stepType(required): string
Allowed Values:
[ "OPERATION", "QUERY" ]The execution-step type. OPERATION performs a configuration action. QUERY is read-only and returns evaluated component properties after prior steps and rule processing.
Match One Schema
Show Source
Nested Schema : nodeProperties
Type:
arrayMinimum Number of Items:
1The evaluated component properties to return for a QUERY step.
Show Source
Nested Schema : ScalarValueType
A string, number, boolean, or null configuration value. SetValue uses this value for a transactional item attribute, Text Feature, Integer Feature, or Decimal Feature; queries use it for returned property values.
Match One Schema
Show Source
Nested Schema : ExecutionStep-oneOf[0]
Type:
Show Source
object-
stepType: string
Allowed Values:
[ "QUERY" ]
Nested Schema : ExecutionStep-oneOf[1]
Type:
Show Source
object-
stepType: string
Allowed Values:
[ "OPERATION" ]
Match One Schema
Show Source
Nested Schema : NodeProperty
Type:
Show Source
object-
nodePropertyName(required): string
Allowed Values:
[ "Name", "Description", "DisplayName", "DisplayNamePath", "MinQuantity", "MaxQuantity", "HasChildren", "HasTransactionalAttributes", "IsRequired", "HasRequiredChildrenInHierarchy", "Valid", "Quantity", "Value", "State", "Selected", "SelectedChildren", "AvailableChildren", "InstanceName", "InstanceType" ]The name of the evaluated node property to retrieve. -
propertyId(required): integer
(int32)
The identifier assigned to the requested node property.
Nested Schema : ExecutionStep-oneOf[1]-oneOf[0]
Type:
Show Source
object-
operation: string
Allowed Values:
[ "SetQuantity" ]
Nested Schema : ExecutionStep-oneOf[1]-oneOf[1]
Type:
Show Source
object-
operation: string
Allowed Values:
[ "SetValue" ]
Nested Schema : ExecutionStep-oneOf[1]-oneOf[2]
Type:
Show Source
object-
operation: string
Allowed Values:
[ "Select", "Deselect" ]
Nested Schema : ExecutionStep-oneOf[1]-oneOf[3]
Type:
Show Source
object-
operation: string
Allowed Values:
[ "Validate", "Finish" ]
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
Configuration runtime request processed successfully.
Nested Schema : ConfigurationResponse
Type:
Show Source
object-
configurationDetails: object
ConfigurationDetails
-
configurationState: object
ConfigurationState
-
customParameters: array
customParameters
Custom name-value pairs returned when their value is non-null.
-
header: object
header
Additional Properties Allowed:
trueOrder or quote header information returned when its value is non-null. -
message: string
The message that describes the overall request result.
-
messages: array
messages
The validation and processing messages returned for the configuration.
-
requestId: integer
(int64)
The identifier of the configuration request.
-
resultCode: string
The code that identifies the overall result of the request.
-
status: string
The processing status of the configuration request.
-
stepResults: array
stepResults
The results returned for the execution steps.
-
validationMode: string
The mode used to validate the configuration request.
Nested Schema : ConfigurationDetails
Type:
Show Source
object-
callingApplicationCode: string
The code that identifies the calling application.
-
callingApplicationId: integer
(int64)
The identifier of the calling application.
-
configDescription: string
The description of the saved configuration.
-
configHeaderId: integer
(int64)
The identifier of the configuration header.
-
configRevisionId: integer
(int64)
The identifier of the configuration revision.
-
configurationId: string
The compound identifier of the configuration.
-
configurationName: string
The name of the saved configuration.
-
createdBy: string
The user who created the configuration.
-
createdOn: string
(date-time)
The date and time when the configuration was created.
-
inventoryItemId: integer
(int64)
The identifier of the root model item.
-
inventoryItemNumber: string
The item number of the root model.
-
inventoryOrganizationCode: string
The code that identifies the inventory organization.
-
inventoryOrganizationId: integer
(int64)
The identifier of the inventory organization.
-
lastUpdatedBy: string
The user who most recently updated the configuration.
-
lastUpdatedOn: string
(date-time)
The date and time when the configuration was most recently updated.
-
lineQuantity: number
The requested line quantity.
-
rootQuantity: number
The quantity of the root configuration node.
-
sessionEffectiveDate: string
(date-time)
The effective date and time of the configuration session.
Nested Schema : ConfigurationState
Type:
Show Source
object-
configState: string
The lifecycle state of the configuration, such as Finished or Error. Finish transitions a successfully persisted configuration to Finished.
-
isValid: boolean
Indicates whether the configuration is valid.
Nested Schema : customParameters
Type:
arrayCustom name-value pairs returned when their value is non-null.
Show Source
Nested Schema : header
Type:
objectAdditional Properties Allowed:
trueOrder or quote header information returned when its value is non-null.
Example:
{
"CalculateTaxFlag":false,
"CalculateShippingChargesFlag":false,
"CalculatePricingChargesFlag":true,
"PricingStrategyId":"300100071623888"
}Nested Schema : messages
Type:
arrayThe validation and processing messages returned for the configuration.
Show Source
-
Array of:
object Message
A validation or processing finding returned for the configuration.
Nested Schema : Message
Type:
objectA validation or processing finding returned for the configuration.
Show Source
-
code: string
The code that identifies the validation or processing finding.
-
severity: string
The severity of the finding, such as ERROR, WARNING, or INFO.
-
text: string
The human-readable text of the validation or processing finding.
Nested Schema : StepResult
Type:
Show Source
object-
alreadyDeselected: boolean
Indicates whether the node was already deselected before the operation.
-
alreadySelected: boolean
Indicates whether the node was already selected before the operation.
-
changeApplied: boolean
Indicates whether the operation changed the configuration.
-
configuratorPath: string
The internal configurator path of the node.
-
headerId: integer
(int64)
The configuration header identifier returned by the Finish operation.
-
isValid: boolean
For a Validate operation, indicates whether the restored configuration satisfies model structure, rules, quantity limits, required selections, and attribute constraints.
-
message: string
The message that describes the step result.
-
nodePath: string
The path of the node targeted by the step.
-
nodePropertyResults: array
nodePropertyResults
The evaluated node property values returned by a query step.
-
operation: string
The configuration operation performed by the step.
-
previousQuantity: number
The node quantity before the step was executed.
-
previousValue:
ScalarValueType
A string, number, boolean, or null configuration value. SetValue uses this value for a transactional item attribute, Text Feature, Integer Feature, or Decimal Feature; queries use it for returned property values.
-
quantity: number
The node quantity after the step was executed.
-
requestedQuantity: number
The quantity requested by a SetQuantity operation, including a value rejected during validation.
-
resultCode: string
The outcome code for the step. Documented results include SELECTED, SELECTED_STATE_CHANGED, NO_OP_ALREADY_SELECTED, DESELECTED, NO_OP_ALREADY_DESELECTED, QUANTITY_UPDATED, NO_OP_QUANTITY_UNCHANGED, VALUE_SET, NO_OP_VALUE_UNCHANGED, OPERATION_ROLLED_BACK, VALIDATION_COMPLETED, CONFIGURATION_FINISHED, ALREADY_FINISHED, REJECTED_RULE_VIOLATION, REJECTED_CONSTRAINT_VIOLATION, REJECTED_INVALID_QUANTITY, REJECTED_INVALID_ATTRIBUTE, REJECTED_VALUE, NOT_FOUND, UNAUTHORIZED, and INVALID_STATE.
-
revisionNumber: integer
(int64)
The configuration revision identifier returned by the Finish operation.
-
status: string
The processing status of the step.
-
stepId: integer
(int32)
The identifier of the execution step.
-
stepType: string
The type of execution step.
-
value:
ScalarValueType
A string, number, boolean, or null configuration value. SetValue uses this value for a transactional item attribute, Text Feature, Integer Feature, or Decimal Feature; queries use it for returned property values.
Nested Schema : nodePropertyResults
Type:
arrayThe evaluated node property values returned by a query step.
Show Source
Nested Schema : ScalarValueType
A string, number, boolean, or null configuration value. SetValue uses this value for a transactional item attribute, Text Feature, Integer Feature, or Decimal Feature; queries use it for returned property values.
Match One Schema
Show Source
Nested Schema : NodeProperty
Type:
Show Source
object-
nodePropertyName: string
The name of the node property.
-
propertyId: integer
(int32)
The identifier assigned to the node property.
-
propertyValue:
ScalarValueType
A string, number, boolean, or null configuration value. SetValue uses this value for a transactional item attribute, Text Feature, Integer Feature, or Decimal Feature; queries use it for returned property values.
Examples
400 Response
Invalid input request.
401 Response
Authentication is required.
403 Response
The user is not authorized to perform this operation.
500 Response
An unexpected error occurred.