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

NameTypeRequiredConstraintsDescription
projectIdintegerYesThe unique ID for a specified project.
logCollectionNamestringYesThe name of the Log Collection.

Request body

Content type: application/json

An array of objects with the following shape:

PropertyTypeRequiredConstraintsDescription
entryIdstringNoread-only (server-generated)The unique identifier of the Log Entry.
eventKeystringNoread-only (server-generated)The event key of the Log Entry.
fieldsobjectNoThe fields of the Log Entry. The keys are the field names and the values are the field values.
searchKeysarray<string>NoThe search keys of the Log Entry.
timestampstringNoread-only (server-generated); format: date-timeThe 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"
  }
]

Responses

204 Successfully created the Log Entry.