Create Log Entries
PUT/projects/{projectId}/customLogs/{logCollectionName}/data
Base URL: https://api.tinkermode.com
Add new Log Entries to a collection.
Authentication
Send an Authorization header of the form ModeCloud <AUTH_CODE>.
Must contain a project API key.
Path parameters
| Name | Type | Required | Constraints | Description |
|---|---|---|---|---|
projectId | integer | Yes | The unique ID for a specified project. | |
logCollectionName | string | Yes | The name of the Log Collection. |
Request body
Content type: application/json
An array of objects with the following shape:
| Property | Type | Required | Constraints | Description |
|---|---|---|---|---|
entryId | string | No | read-only (server-generated) | The unique identifier of the Log Entry. |
eventKey | string | No | read-only (server-generated) | The event key of the Log Entry. |
fields | object | No | The fields of the Log Entry. The keys are the field names and the values are the field values. | |
searchKeys | array<string> | No | The search keys of the Log Entry. | |
timestamp | string | No | read-only (server-generated); format: date-time | The timestamp of the Log Entry. |
Request example
[
{
"eventKey": "foo_event",
"fields": {
"bar": "baz",
"foo": 1,
"qux": true
},
"searchKeys": [
"bar"
],
"timestamp": "2024-01-01T00:00:00Z"
}
]