Setting the Model "Source" Field
When importing models from a model store or model stores, users can now set the “source” of every model via API. The Source field will exist on every model record, can only be set via API, and is immutable by the UI. Sort your Model Registry for Source to view which models came from which model stores.
Source field feature details:
- Source is a filterable column in the model registry
- Source cannot be edited via the UI
- Source can be set via
- Model source is viewable and filterable by the /models endpoint
- Once the source field on a model is set, users cannot set it again
- The ability to re-set a a model source field is a feature enhancement on our roadmap
- Source field can hold any string value
Related endpoints
- get, post, update /sources : handles the creation of the authorized sources
- /models : handles creation/update of models including the source field
In order to add a new source field value and then set a source on a model:
- Create a source in the sources tables using the first endpoint
- Create a new model (or update an existing one) with the source name you have added in step 1
Create a new source
This is an example of the api call to create a new source in the source table:
POST PAYLOAD:
RESPONSE CONTENT:
Get existing sources
GET API CALL
RESPONSE CONTENT
