kustomer-client
    Preparing search index...

    Function getKObjects

    • Get KObjects (custom objects) Retrieves a KObject (custom object) based on the Klass name.

      To learn more, see Data Model Overview.

      Any one of the following roles is required for this endpoint:

      Legacy Role Equivalent Permission Set Role
      org.user.klass.read org.permission.klass.read
      org.admin.klass.read

      Type Parameters

      • ThrowOnError extends boolean = true

      Parameters

      Returns RequestResult<
          {
              data: {
                  attributes: {
                      assignedUser?: string;
                      createdAt: string;
                      custom: { [key: string]: unknown };
                      doneCount?: number;
                      firstDone?: {
                          assignedTeam?: string;
                          assignedUser?: string;
                          businessTime?: number;
                          commentCount?: number;
                          createdAt?: string;
                          createdBy?: string;
                          createdByTeam?: string;
                          time?: number;
                      };
                      icon: string;
                      images: string[];
                      klassDisplayName?: string;
                      klassMixins?: "assignable"[];
                      lastDone?: {
                          assignedTeam?: string;
                          assignedUser?: string;
                          businessTime?: number;
                          commentCount?: number;
                          createdAt?: string;
                          createdBy?: string;
                          createdByTeam?: string;
                          time?: number;
                      };
                      queue?: string;
                      reopenCount?: number;
                      reopenFromDoneCount?: number;
                      rev: number;
                      s3DataUrl?: string;
                      status?: "open"
                      | "done";
                      tags: unknown[];
                      title: string;
                      updatedAt: string;
                  };
                  id: string;
                  links: { self: string };
                  relationships: {
                      klass: { data: { id: string; type: string }; link: { self: string } };
                      org: { data: { id: string; type: string }; links: { self: string } };
                      queue?: { data: { id: string; type: string }; links: { self: string } };
                  };
                  type: string;
              }[];
              links: {
                  first: string;
                  next: null
                  | string;
                  prev: null | string;
                  self: string;
              };
              meta: { page: number; pageSize: number };
          },
          unknown,
          ThrowOnError,
      >