MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / UpdateCollection

Method UpdateCollection

internal/cli/client.go:187–190  ·  view source on GitHub ↗
(wsSlug, collSlug string, input models.CollectionUpdate)

Source from the content-addressed store, hash-verified

185}
186
187func (c *Client) UpdateCollection(wsSlug, collSlug string, input models.CollectionUpdate) (*models.Collection, error) {
188 var result models.Collection
189 return &result, c.patch("/workspaces/"+wsSlug+"/collections/"+collSlug, input, &result)
190}
191
192// DeleteCollection soft-deletes a collection by setting
193// collections.deleted_at. Items in the collection are NOT cascaded;

Callers 1

collectionsUpdateCmdFunction · 0.45

Calls 1

patchMethod · 0.95

Tested by

no test coverage detected