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

Method CreateCollection

internal/cli/client.go:297–300  ·  view source on GitHub ↗
(wsSlug string, input models.CollectionCreate)

Source from the content-addressed store, hash-verified

295}
296
297func (c *Client) CreateCollection(wsSlug string, input models.CollectionCreate) (*models.Collection, error) {
298 var result models.Collection
299 return &result, c.post("/workspaces/"+url.PathEscape(wsSlug)+"/collections", input, &result)
300}
301
302func (c *Client) GetCollection(wsSlug, collSlug string) (*models.Collection, error) {
303 var result models.Collection

Calls 1

postMethod · 0.95