Update a Configuration Entry
Through the contract-based REST API, an external application can submit the user-selected features and options of the manufacturing product configurator to MYOB Acumatica Manufacturing Edition. These features and options are available for MYOB Acumatica Manufacturing Edition users on the Configuration Entry (AM306000) form.
Testing of the Request
Before you test the code in the following section, you need to do the following:
- Deploy a new MYOB Acumatica instance with the SalesDemo dataset. For details on deploying an instance, see To Deploy an MYOB Acumatica Instance.
- On the Enable/Disable Features (CS100000) form, make sure that the Manufacturing and Product Configurator features are enabled.
- If you use Postman as the client application for testing, in the IntegrationDevelopmentGuide.postman_collection.json collection (which is located in the IntegrationDevelopment\Help folder of the Help-and-Training-Examples repository on GitHub), make sure the collection variables have the proper values.
- To sign in to the instance in the client application, use the tenant name (which you specified when you created the instance) and the PRODWHOLE branch.
Request
You can use the following request example to submit a configuration entry through the REST API.
Tip:
In the request example below,
<MYOB Acumatica instance URL>
is the URL of the MYOB Acumatica
instance (such as https://my.acumatica.com/MyInstance). You can omit the instance
name in the URL (that is, you can use https://my.acumatica.com) if the instance
is installed in the root of the website.PUT /entity/MANUFACTURING/23.200.001/ConfigurationEntry?
$expand=Attributes,Features/Options HTTP/1.1
Host: [<MYOB Acumatica instance URL>]
Accept: application/json
Content-Type: application/json
{
"ProdOrderNbr": {"value": "AM000022"},
"ProdOrderType": {"value": "RO"},
"ConfigResultsID": {"value": "5"},
"ConfigurationID": {"value": "AMC000003"},
"Features": [
{
"FeatureLineNbr": { "value": 1 },
"ConfigResultsID": { "value": "5" },
"Options": [
{
"FeatureLineNbr": { "value": 1 },
"OptionLineNbr": { "value": 1 },
"ConfigResultsID": { "value": "5" },
"Included": { "value": true }
},
{
"FeatureLineNbr": { "value": 1 },
"OptionLineNbr": { "value": 2 },
"ConfigResultsID": { "value": "5" },
"Included": { "value": true }
}
]
}
]
}