Interface FilterBadgesInCollectionPayload

interface FilterBadgesInCollectionPayload {
    attributes?: {
        name: string;
        value: string | number | boolean;
    }[];
    badgeIds?: iUintRange<NumberType>[];
    bookmark?: string;
    categories?: string[];
    mostViewed?: "daily" | "allTime" | "weekly" | "monthly" | "yearly";
    tags?: string[];
}

Properties

attributes?: {
    name: string;
    value: string | number | boolean;
}[]

Attribute queries

Type declaration

  • name: string
  • value: string | number | boolean
badgeIds?: iUintRange<NumberType>[]

Limit to specific badge IDs. Leave undefined to not filter by badge ID.

bookmark?: string

Pagination bookmark. Leave undefined or "" for first request.

categories?: string[]

Limit to specific lists. Leave undefined to not filter by list.

mostViewed?: "daily" | "allTime" | "weekly" | "monthly" | "yearly"

mostViewed is a special view that sorts by most viewed badges. May be incompatible with other filters.

tags?: string[]

Limit to specific lists. Leave undefined to not filter by list.