Skip to content
Go to Micro

Unpin a record from the view

client.Views.Records.Unpin(ctx, objectType, viewID, objectID, body) error
DELETE/v2/prism/{teamId}/{objectType}/views/{viewId}/records/{objectId}

Unpin a record from the view

ParametersExpand Collapse
One of the following:
const ViewRecordUnpinParamsObjectTypeComment ViewRecordUnpinParamsObjectType = "comment"
const ViewRecordUnpinParamsObjectTypeAction ViewRecordUnpinParamsObjectType = "action"
const ViewRecordUnpinParamsObjectTypeDeal ViewRecordUnpinParamsObjectType = "deal"
const ViewRecordUnpinParamsObjectTypeEngagement ViewRecordUnpinParamsObjectType = "engagement"
const ViewRecordUnpinParamsObjectTypeDocument ViewRecordUnpinParamsObjectType = "document"
const ViewRecordUnpinParamsObjectTypeEvent ViewRecordUnpinParamsObjectType = "event"
const ViewRecordUnpinParamsObjectTypeIdentity ViewRecordUnpinParamsObjectType = "identity"
const ViewRecordUnpinParamsObjectTypeOrganization ViewRecordUnpinParamsObjectType = "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.ViewRecordUnpinParamsObjectTypeComment,
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    micro.ViewRecordUnpinParams{

    },
  )
  if err != nil {
    panic(err.Error())
  }
}
Returns Examples