Skip to content
Go to Micro

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

ParametersExpand Collapse
One of the following:
const ViewRecordUnpinParamsViewObjectTypeAction ViewRecordUnpinParamsViewObjectType = "action"
const ViewRecordUnpinParamsViewObjectTypeDeal ViewRecordUnpinParamsViewObjectType = "deal"
const ViewRecordUnpinParamsViewObjectTypeDocument ViewRecordUnpinParamsViewObjectType = "document"
const ViewRecordUnpinParamsViewObjectTypeEvent ViewRecordUnpinParamsViewObjectType = "event"
const ViewRecordUnpinParamsViewObjectTypeIdentity ViewRecordUnpinParamsViewObjectType = "identity"
const ViewRecordUnpinParamsViewObjectTypeOrganization ViewRecordUnpinParamsViewObjectType = "organization"
viewID string
formatuuid
objectID string
formatuuid
body ViewRecordUnpinParams
TeamID param.Field[string]Optional
formatuuid

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())
  }
}
Returns Examples