Update resource
Update a resource description, replace its model repository links, or do both. The resource kind cannot be changed.
PATCH
/v1/workspaces/{workspace}/resources/{name}Authorization
Authorizationstringrequired
Send a Modaic bearer token in the Authorization header.
Path Parameters
workspacestringrequired
User or organization workspace slug that owns the resource.
namestringrequired
Resource name.
Body
descriptionstring | null
New description. Pass null to clear it.
reposstring[]
Complete replacement list of model repository names owned by the authenticated account. Pass an empty list to unlink every model.
At least one of description or repos is required. Unknown fields, including
kind, are rejected.
Response
Returns the updated Resource object.
Was this page helpful?