How to update model status via API

You can update your model status using the API. The available status options are PRODUCTION, EXPERIMENTAL, RETIRED, and STAGING. If you use a status outside of these options, you will receive an error message.

To update your model status via the Vectice Python API, follow this example script:

import vectice

# connect to Vectice
connect = vectice.connect(api_token="your-api-key") #Paste your API key

# retrieve your model version using the model version ID
mdv = connect.browse('MDV-XXX')

# Update your model status
mdv.update(status="PRODUCTION")