Sanity Library Reference Docs
    Preparing search index...

    Interface UpdateCommentAnchorOptionsBeta

    Where a comment now attaches, within the field and document it already targets: a new anchor, null to drop the anchor and leave a field-level comment, or nothing at all to leave the anchor as it is.

    interface UpdateCommentAnchorOptions {
        anchor?: CollaborationCommentAnchor | null;
        commentId: string;
        dataset?: string;
        perspective?: ReleasePerspective | ClientPerspective$1;
        projectId?: string;
        resource?: DocumentResource;
    }

    Hierarchy (View Summary)

    Index

    Properties

    anchor?: CollaborationCommentAnchor | null
    commentId: string
    dataset?: string
    perspective?: ReleasePerspective | ClientPerspective$1
    projectId?: string
    resource?: DocumentResource

    Explicit resource to use. On an individual operation this overrides any default; on a SanityConfig it becomes the instance's default resource. Unlike projectId/dataset, this can also be a media library or canvas resource.