Sanity Library Reference Docs
    Preparing search index...

    Interface PublishReleaseActionBeta

    Publishes all version documents in a release.

    interface PublishReleaseAction {
        dataset?: string;
        perspective?: ReleasePerspective | ClientPerspective;
        projectId?: string;
        releaseId: string;
        resource?: DocumentResource;
        type: "release.publish";
    }

    Hierarchy (View Summary)

    Index

    Properties

    dataset?: string
    projectId?: string
    releaseId: 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.

    type: "release.publish"