---
title: "Create multiple habit logs."
method: POST
path: "/api/v5/habits/habit-logs/multiple"
tags: ["Habit Logs"]
---

# Create multiple habit logs.

`POST /api/v5/habits/habit-logs/multiple`

## Request

- Base URL: `https://api.pavlok.com`
- URL: `https://api.pavlok.com/api/v5/habits/habit-logs/multiple`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/pavlok/apis/pavlok-api-v5/docs/api/v5/habits/habit-logs/multiple/post.ts> (a function with typed inputs; its response is checked against the schema)

Create multiple habit logs.

## Request body

- BodyHabitLogsCreateMultipleApiV5HabitsHabitLogsMultiplePost
  - `habit_logs` ListOfHabitLogInCreate, required
    - `userId` integer, required
    - `habitKey` string, required
    - `source` 'manual' | 'device', required: An enumeration.
    - `logs` HabitLogInList[], required
      - `value` number, required
      - `timestamp` string, date-time, required
      - `meta` object

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/pavlok/apis/pavlok-api-v5.md) - [All operations](https://skmtc.dev/pavlok/apis/pavlok-api-v5/llms.txt) - [OpenAPI document](https://skmtc.dev/pavlok/apis/pavlok-api-v5/revisions/3d192098b1ac?raw)
