@honua/sdk-js
    Preparing search index...

    Interface ApplyEditsRequest

    Parameters for applying feature edits (add, update, delete) to a feature layer.

    interface ApplyEditsRequest {
        adds?: HonuaFeature[];
        attributeTypes?: Readonly<Record<string, GrpcPreciseAttributeType>>;
        deletes?: string | number[] | readonly string[];
        globalIdField?: string;
        idempotencyKey?: string;
        layerId: number;
        objectIdField?: string;
        rollbackOnFailure?: boolean;
        serviceId: string;
        signal?: AbortSignal;
        updates?: HonuaFeature[];
        useGlobalIds?: boolean;
    }
    Index

    Properties

    adds?: HonuaFeature[]
    attributeTypes?: Readonly<Record<string, GrpcPreciseAttributeType>>

    gRPC only: declared types of string-valued attributes that need a precise wire value (ISO date, local time, offset timestamp, exact decimal). Other strings travel as plain strings.

    deletes?: string | number[] | readonly string[]

    Object IDs, or global IDs when useGlobalIds is true.

    globalIdField?: string

    gRPC only: attribute that carries Feature.global_id on adds and global-ID updates.

    idempotencyKey?: string

    gRPC only: stable server receipt key for an explicitly retried logical edit. Writes are never automatically retried.

    layerId: number
    objectIdField?: string

    gRPC only: primary-key attribute used for Feature.id; defaults to objectid or id (case insensitive).

    rollbackOnFailure?: boolean
    serviceId: string
    signal?: AbortSignal
    updates?: HonuaFeature[]
    useGlobalIds?: boolean

    Address updates and deletes by global ID instead of object ID; deletes then lists global IDs. On gRPC, updates read the global ID from HonuaFeature.globalId or the globalIdField attribute; on REST they keep it in the server's global-ID attribute.