Update resources in a private hub
You can update resources in your private hub to make changes to their metadata. The resources that you can update include model references to Amazon SageMaker JumpStart models, custom models, notebooks, datasets, and JsonDoc.
When updating model, notebook, datasets, or JsonDoc resources, you can update the content description, display name, keywords, and support status. When updating model references to JumpStart models, you can only update the field specifying the minimum model version that you'd like to use.
-
“Update model or notebook resources” to include DataSet/JsonDoc. In CLI command, DataSets/JsonDocs should added to the hub-content-type argument.
Follow the section specific to the resource that you want to update.
Update model or notebook resources
To update a model or a notebook resource, use the UpdateHubContent API.
The valid metadata fields that you can update with this API are the following:
-
HubContentDescription– The description of the resource. -
HubContentDisplayName– The display name of the resource. -
HubContentMarkdown– The description of the resource, in Markdown formatting. -
HubContentSearchKeywords– The searchable keywords of the resource. -
SupportStatus– The current status of the resource.
In your request, include a change for one or more of the preceding fields. If you attempt to update any other fields, such as the hub content type, you receive an error.
Update model references
To update a model reference to a JumpStart model, use the UpdateHubContentReference API.
You can only update the MinVersion field for model references.