Get log record entry
GET/projects/{projectId}/entities/{entityId}/customLogs/{customLogDefinitionId}/data/{entryId}
Base URL: https://api.tinkermode.com
Get a log record entry with a specified ID.
Authentication
Send an Authorization header of the form ModeCloud <AUTH_CODE>.
Must contain a user API key of a user with permission to create the entity custom log, a service account token with the same permission, or a project API key with admin permission.
Path parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
projectId | integer | Yes | The unique ID for a specified project. | |
entityId | string | Yes | Entity ID (unique within project) | |
customLogDefinitionId | string | Yes | Custom log definition ID (unique within entity class). | |
entryId | string | Yes | Unique ID of log entry. |
Responses
200 The requested custom log record is returned.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
entryId | string | Yes | read-only (server-generated) | Unique ID of the log record entry. |
eventKey | string | No | read-only (server-generated) | Event key of the log record. |
fields | object | Yes | read-only (server-generated) | An object of key-value pairs containing the log data. |
timestamp | string | Yes | read-only (server-generated) | Time in RFC3339 format. |
Response example
{
"eventKey": "20220317012345678-2",
"fields": {
"result_code": "000",
"tester_model": "MODE-123",
"value": 0
},
"timestamp": "2022-03-18T01:23:45.678Z"
}401 Authorization is required to access this resource.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
403 Request failed because of denied permission.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
404 The requested data does not exist or is not accessible.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
429 Request failed because of rate limit.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
500 An unexpected error has occurred.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |
503 The service is temporarily unavailable.
Content type: application/json
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
data | object | No | read-only (server-generated) | Any relevant data related to error. |
reason | string | Yes | read-only (server-generated) | Reason of error. |