Sanity App SDK
    Preparing search index...

    Interface PublishDocumentAction<TDocumentType, TDataset, TProjectId>Beta

    Represents an action to publish the draft version of a document. Requires the full document handle.

    interface PublishDocumentAction<
        TDocumentType extends string = string,
        TDataset extends string = string,
        TProjectId extends string = string,
    > {
        dataset?: TDataset;
        documentId: string;
        documentType: TDocumentType;
        perspective?: ReleasePerspective | ClientPerspective;
        projectId?: TProjectId;
        type: "document.publish";
    }

    Type Parameters

    • TDocumentType extends string = string
    • TDataset extends string = string
    • TProjectId extends string = string

    Hierarchy (View Summary)

    Index

    Properties

    dataset?: TDataset
    documentId: string
    documentType: TDocumentType
    perspective?: ReleasePerspective | ClientPerspective
    projectId?: TProjectId
    type: "document.publish"