---
updatedAt: 2026-10-25T15:46:36.000Z
agentTools:
  projectIndex: https://docs.superwise.ai/llms.txt
---

# Log

Logs one record to a dataset.
Send application/json for a record without images, or multipart/form-data with the record
as a JSON string in the record field when it includes images; use Log Batch for many records at once.
A successful call returns 202 Accepted.

Logs one record to a dataset. Send `application/json` with the record in a `record` object, or `multipart/form-data` when the record includes images.

## When to use it

Use it to ingest data over the REST API as events happen. For many records at once, use [Log a batch of records](https://docs.superwise.ai/reference/log_batch_v1_datasets_log_batch_post).

## Required parameters

* `dataset_id` (path): the ID of the dataset.

## Response

A successful call returns `202 Accepted`. The response body is not documented.

**Related:** [Log a batch of records](https://docs.superwise.ai/reference/log_batch_v1_datasets_log_batch_post), [Update a record in a dataset](https://docs.superwise.ai/reference/update_record_v1_datasets__dataset_id__update_post), [Create a dataset](https://docs.superwise.ai/reference/create_dataset)

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "paths": {
    "/v1/datasets/{dataset_id}/log": {
      "post": {
        "tags": [
          "Dataset"
        ],
        "summary": "Log",
        "description": "Logs one record to a dataset.\nSend application/json for a record without images, or multipart/form-data with the record\nas a JSON string in the record field when it includes images; use Log Batch for many records at once.\nA successful call returns 202 Accepted.",
        "operationId": "log_v1_datasets__dataset_id__log_post",
        "parameters": [
          {
            "name": "dataset_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Dataset Id"
            }
          },
          {
            "name": "content-type",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "default": "",
              "title": "Content-Type"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "info": {
    "title": "Superwise Main Entities",
    "description": "API reference",
    "version": "0.1.0"
  },
  "components": {
    "schemas": {
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "implicit": {
        "type": "oauth2",
        "flows": {
          "implicit": {
            "authorizationUrl": "https://authentication.superwise.ai/identity/resources/auth/v1/api-token",
            "scopes": {}
          }
        }
      }
    }
  },
  "security": [
    {
      "implicit": []
    }
  ],
  "servers": [
    {
      "url": "api.superwise.ai",
      "description": "Superwise Api Gateway"
    }
  ]
}
```