Sanity Library Reference Docs
    Preparing search index...

    Interface CreateDataAttributeProps

    The metadata that can be embedded in a data attribute. All values are marked optional in the base type as they can be provided incrementally using the createDataAttribute function.

    interface CreateDataAttributeProps {
        baseUrl?: string;
        dataset?: string;
        id?: string;
        path?: StudioPathLike;
        projectId?: string;
        tool?: string;
        type?: string;
        workspace?: string;
    }
    Index

    Properties

    baseUrl?: string

    The studio base URL, optional

    dataset?: string

    The dataset, optional

    id?: string

    The document ID, required

    path?: StudioPathLike

    The field path, required

    projectId?: string

    The project ID, optional

    tool?: string

    The studio tool name, optional

    type?: string

    The document type, required

    workspace?: string

    The studio workspace, optional