---
title: "Create Log Book Comment"
method: POST
path: "/v2/company/{company_id}/log_book_comments"
tags: ["Log Book"]
---

# Create Log Book Comment

`POST /v2/company/{company_id}/log_book_comments`

## Request

- Base URL: `https://api.7shifts.com`
- URL: `https://api.7shifts.com/v2/company/{company_id}/log_book_comments`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://app.7shifts.com/oauth2/authorize`
    - Client credentials
    - Password
    - Token URL: `https://app.7shifts.com/oauth2/token`
  - API key in cookie `7session`

Beta

## Path parameters

- `company_id` integer, required

## Headers

- `x-api-version` string: An API version
- `x-company-guid` string, uuid

## Request body

- object
  - `log_book_id` integer, required
  - `message` string, required

## Response `200`

OK

- object
  - `object` 'log_book_comment', required
  - `data` object, required
    - `id` integer, required
    - `uuid` string, uuid, required
    - `log_book_id` integer, required
    - `user_id` integer, required
    - `message` string, required
    - `created` string, date-time, required
    - `company_id` integer, required

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Unprocessable Entity
- `500`: Server Error

---

[API](https://skmtc.dev/7shifts/apis/7shifts-api.md) - [All operations](https://skmtc.dev/7shifts/apis/7shifts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/7shifts/apis/7shifts-api/revisions/40e0ef40dfcd?raw)
