Get Device Log Requests

GET/devices/{deviceId}/logRequests

Base URL: https://api.tinkermode.com

Get log requests made to a device.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain a user or service account who has read access to the device, or project API key.

Path parameters

NameTypeRequiredConstraintsDescription
deviceIdintegerYesDevice ID

Query parameters

NameTypeRequiredConstraintsDescription
limitintegerNoLimits the number of entries returned.
skipintegerNoLimits the number of entries to paginate.
sortBystringNoA comma-delimited list of sort keys. (e.g. "field1:asc,field2:desc") ts and status are valid fields. The default sort order is ascending.
statusesstringNoThe value must be delimited by comma. Returns entries bound by this status.

Responses

200

Content type: application/json

Represents a request to a device for uploading its logs.

An array of objects with the following shape:

PropertyTypeRequiredConstraintsDescription
contentTypestringNoMIME type of file uploaded for this request.
deviceIdintegerNoID of device associated with log request.
filenamestringNoFilename of uploaded device log.
idstringNoUnique ID of log request
projectIdintegerNoID of project associated with log request.
statusunknownNoone of: success, failure, requested, uploading, cancelledStatus of log request.
tokenstringNoRequest token sent to device.
tsstringNoformat: date-timeCreation timestamp of log request.
uploadIdstringNoUnique ID assigned to an upload session.
urlstringNoURL for downloading the stored device log.

401 Authorization is required to access this resource.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

403 Request failed because of denied permission.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

429 Request failed because of rate limit.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

500 An unexpected error has occurred.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.

503 The service is temporarily unavailable.

Content type: application/json

PropertyTypeRequiredConstraintsDescription
dataobjectNoread-only (server-generated)Any relevant data related to error.
reasonstringYesread-only (server-generated)Reason of error.