Unpin a record from the view
client.Views.Records.Unpin(ctx, viewObjectType, viewID, objectID, body) error
DELETE/v2/prism/{teamId}/{viewObjectType}/views/{viewId}/records/{objectId}
Unpin a record from the view
package main
import (
"context"
"github.com/micro-so/micro-sdk-go"
"github.com/micro-so/micro-sdk-go/option"
)
func main() {
client := micro.NewClient(
option.WithAPIKey("My API Key"),
option.WithTeamID("My Team ID"),
)
err := client.Views.Records.Unpin(
context.TODO(),
micro.ViewRecordUnpinParamsViewObjectTypeAction,
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
micro.ViewRecordUnpinParams{
},
)
if err != nil {
panic(err.Error())
}
}