Tsarr Documentation - v2.16.0
    Preparing search index...

    Type Alias GetPersonsData

    type GetPersonsData = {
        body?: never;
        path?: never;
        query?: {
            startIndex?: number;
            limit?: number;
            searchTerm?: string;
            nameStartsWith?: string;
            nameLessThan?: string;
            nameStartsWithOrGreater?: string;
            fields?: ItemFields[];
            filters?: ItemFilter[];
            isFavorite?: boolean;
            enableUserData?: boolean;
            imageTypeLimit?: number;
            enableImageTypes?: ImageType[];
            excludePersonTypes?: string[];
            personTypes?: string[];
            parentId?: string;
            appearsInItemId?: string;
            userId?: string;
            enableImages?: boolean;
        };
        url: "/Persons";
    }
    Index
    body?: never
    path?: never
    query?: {
        startIndex?: number;
        limit?: number;
        searchTerm?: string;
        nameStartsWith?: string;
        nameLessThan?: string;
        nameStartsWithOrGreater?: string;
        fields?: ItemFields[];
        filters?: ItemFilter[];
        isFavorite?: boolean;
        enableUserData?: boolean;
        imageTypeLimit?: number;
        enableImageTypes?: ImageType[];
        excludePersonTypes?: string[];
        personTypes?: string[];
        parentId?: string;
        appearsInItemId?: string;
        userId?: string;
        enableImages?: boolean;
    }

    Type Declaration

    • OptionalstartIndex?: number

      Optional. All items with a lower index will be dropped from the response.

    • Optionallimit?: number

      Optional. The maximum number of records to return.

    • OptionalsearchTerm?: string

      The search term.

    • OptionalnameStartsWith?: string

      Optional. Filter by items whose name starts with the given input string.

    • OptionalnameLessThan?: string

      Optional. Filter by items whose name will appear before this value when sorted alphabetically.

    • OptionalnameStartsWithOrGreater?: string

      Optional. Filter by items whose name will appear after this value when sorted alphabetically.

    • Optionalfields?: ItemFields[]

      Optional. Specify additional fields of information to return in the output.

    • Optionalfilters?: ItemFilter[]

      Optional. Specify additional filters to apply.

    • OptionalisFavorite?: boolean

      Optional filter by items that are marked as favorite, or not. userId is required.

    • OptionalenableUserData?: boolean

      Optional, include user data.

    • OptionalimageTypeLimit?: number

      Optional, the max number of images to return, per image type.

    • OptionalenableImageTypes?: ImageType[]

      Optional. The image types to include in the output.

    • OptionalexcludePersonTypes?: string[]

      Optional. If specified results will be filtered to exclude those containing the specified PersonType. Allows multiple, comma-delimited.

    • OptionalpersonTypes?: string[]

      Optional. If specified results will be filtered to include only those containing the specified PersonType. Allows multiple, comma-delimited.

    • OptionalparentId?: string

      Optional. Specify this to localize the search to a specific library. Omit to use the root.

    • OptionalappearsInItemId?: string

      Optional. If specified, person results will be filtered on items related to said persons.

    • OptionaluserId?: string

      User id.

    • OptionalenableImages?: boolean

      Optional, include image information in output.

    url: "/Persons"