メインコンテンツへスキップ
POST
Search devices for an organization

承認

Authorization
string
header
必須

For authenticated requests, set the Authorization: Bearer your_api_key parameter in the header.
You can create and manage your API Keys by visiting the API Keys tab in the Settings page of your organization in Assist SaaS Manager

パスパラメータ

organizationId
number
必須

クエリパラメータ

limit
number

Maximum number of items to return per page

例:

50

cursor
string

Base64-encoded cursor for pagination. Use the cursor from the previous response to get the next page.

sortBy
string

The sortBy value is a string that contains two parts separated by a dot. The first part is either preset or custom and the second part is the unique field name. Additionally the following fields can be used for sorting: people.displayName.

例:

"<preset | custom>.<unique field name>"

sortOrder
enum<string>

Sort order for the results (asc or desc)

利用可能なオプション:
DESC,
ASC
expands
enum<string>[]

Expand other datasets when fetching devices. Accepts multiple options.

利用可能なオプション:
relatedIdentity,
customFieldsMetadata

ボディ

application/json
peopleId
number

Filter devices by the people ID assigned to them

例:

5034567

type
enum<string>

Filter devices by device type

利用可能なオプション:
pc,
phone,
other
例:

"pc"

groupId
number

Filter devices to those matching the conditions of the given Device Group (restricts results to the group's member devices).

例:

42

employeeStatus
enum<string>

Filter devices by the employment status of the assigned person. archived matches devices whose assignee's identity is archived, unassigned devices with no assignee. Prefer employeeStatuses, which takes several.

利用可能なオプション:
active,
on_leave,
draft,
preactive,
retired,
untracked,
archived,
unassigned
例:

"active"

employeeStatuses
enum<string>[]

Filter devices matching any of these: an employment status of the assigned person, archived (the assignee's identity is archived) or unassigned (no assignee). Combined with employeeStatus if both are sent.

Filter devices by the employment status of the assigned person. archived matches devices whose assignee's identity is archived, unassigned devices with no assignee. Prefer employeeStatuses, which takes several.

利用可能なオプション:
active,
on_leave,
draft,
preactive,
retired,
untracked,
archived,
unassigned
例:
searchTerm
string

Search term to filter devices. Searches across fields specified in searchFields

例:

"foo"

searchFields
string[]

Array of field names to search within when using searchTerm. Supports memo, people fields, preset fields, and custom fields. At most 68 entries are allowed; a larger array is rejected.

例:
filters
object

The object key is the field name, and the value is the filter options. Keys look like preset.<unique field name>. There are certain extra virtual fields, such as $age, please check implementation or ask a backend engineer.

レスポンス

meta
object
必須
items
object[]
必須
read-only