Assign an econmodel to a new qualifier

I need to create a qualifier to manage different price decks. Currently I can set the qualifier in EconAssignment in payload but there is no way to create a new one and assign it an Econ Model.

/v1/projects/:projectId/econ-models/:econName/:econModelId/assignments

qualifierName is set to ‘Default’ works, but if I specify a new qualifier (e.g. qualifierName=’Lower’), it won’t assign it an econ model because the qualifier doesn’t exist. Currently I’ve to manually create it. Can I create that qualifier premempty before assigning it a model?

Hey @jassur, I haven’t tried this myself, but it does look like there’s an endpoint available to do what you’re asking.

From what I can tell based off the documentation, you should just be able to make a POST request to this endpoint that includes a payload that looks something like this:

payload = {
"econModel" : "pricing",
"name" : "New Price Deck"
}

Then you can assign the new pricing model to the “New Price Deck” qualifier.

2 Likes

Just tested if this would work and it does create the new qualifier for you. Hope this helps!

2 Likes