Skip to content

Function: getArchivedObjects() ​

ts
function getArchivedObjects(
   client, 
   parameters?, 
   options?
): Promise<{
[key: string]: unknown;
  count?: number;
  limit?: number;
  offset?: number;
  results?: object[];
  total?: number;
}>;

Defined in: src/assetsServer/api/objects.ts:31

Retrieve archived objects.

Parameters ​

ParameterTypeDescription
clientClient-
parameters?{ archivedBy?: string; archivedFromDate?: string; archivedToDate?: string; limit?: string; objectSchemaId?: string; objectTypeIds?: string; offset?: string; }-
parameters.archivedBy?stringA list of users that archived the objects. Optional. If not set, all users will be searched for.
parameters.archivedFromDate?stringTimestamp in ISO Offset Date Time format e.g. 2021-12-03T10:15:30+01:00. Only objects archived at or after this time will be displayed. Optional.
parameters.archivedToDate?stringTimestamp in ISO Offset Date Time format e.g. 2021-12-03T10:15:30+01:00. Only objects archived before this time will be displayed. Must be after archivedFromDate, if both are set. Optional.
parameters.limit?stringThe maximum number of objects to return. Optional.
parameters.objectSchemaId?stringThe id of the object schema to search for.
parameters.objectTypeIds?stringA list of object type ids to search for. Optional. If not set, all object types within the schema will be searched for.
parameters.offset?stringThe offset of the first object to return. Optional.
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; count?: number; limit?: number; offset?: number; results?: object[]; total?: number; }>