Pin a record to the view (append to record_order)
client.Views.Records.Pin(ctx, viewObjectType, viewID, objectID, params) error
POST/v2/prism/{teamId}/{viewObjectType}/views/{viewId}/records/{objectId}
Pin a record to the view (append to record_order)
Pin a record to the view (append to record_order)
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.Pin(
context.TODO(),
micro.ViewRecordPinParamsViewObjectTypeAction,
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
micro.ViewRecordPinParams{
},
)
if err != nil {
panic(err.Error())
}
}