---
title: "Update Multiple Comments"
method: PATCH
path: "/comments"
tags: ["Comments"]
---

# Update Multiple Comments

`PATCH /comments`

Update multiple comments at the same time.

## Query parameters

- `fields` string[]
- `limit` integer
- `meta` string
- `offset` integer
- `sort` string[]
- `search` string

## Request body

- object
  - `keys` string[]
  - `data` object
    - `collection` string, required — Which collection this collection comment is for.
    - `item` string
    - `comment` string

## Response `200`

Successful request

- object
  - `data` Comments[]
    - `id` string — Unique identifier for this single collection preset.
    - `collection` union — The collection of the item the Comment is created for.
      - string
      - Collections
        - `collection` string — The collection key.
        - `icon` string, nullable
        - `note` string, nullable
        - `display_template` string, nullable
        - `hidden` boolean
        - `singleton` boolean
        - `translations` unknown
        - `archive_field` string, nullable
        - `archive_app_filter` boolean
        - `archive_value` string, nullable
        - `unarchive_value` string, nullable
        - `sort_field` string, nullable
        - `accountability` string, nullable
        - `color` string, nullable
        - `item_duplication_fields` unknown
        - `sort` integer, nullable
        - `group` union
          - string
          - Collections — recursive
        - `collapse` string
        - `preview_url` string, nullable
        - `versioning` boolean
    - `item` string — The item the Comment is created for.
    - `comment` string — User comment. This will store the comments that show up in the right sidebar of the item edit page in the admin app.
    - `date_created` string, date-time, nullable — When the Comment was created.
    - `date_updated` string, date-time, nullable — When the Comment was updated.
    - `user_created` union — User that created the Comment.
      - string
      - Users
        - `id` string — Unique identifier for the user.
        - `first_name` string — First name of the user.
        - `last_name` string — Last name of the user.
        - `email` string, email — Unique email address for the user.
        - `password` string — Password of the user.
        - `location` string, nullable — The user's location.
        - `title` string, nullable — The user's title.
        - `description` string, nullable — The user's description.
        - `tags` string[], nullable — The user's tags.
        - `avatar` union — The user's avatar.
          - string
          - Files
            - `id` string — Unique identifier for the file.
            - `storage` string — Where the file is stored. Either `local` for the local filesystem or the name of the storage adapter (for example `s3`).
            - `filename_disk` string — Name of the file on disk. By default, Directus uses a random hash for the filename.
            - `filename_download` string — How you want to the file to be named when it's being downloaded.
            - `title` string — Title for the file. Is extracted from the filename on upload, but can be edited by the user.
            - `type` string — MIME type of the file.
            - `folder` union — Virtual folder where this file resides in.
              - …
            - `uploaded_by` union — Who uploaded the file.
              - …
            - `created_on` string, date-time — When the file was created.
            - `modified_by` union
              - …
            - `modified_on` string, date-time
            - `charset` string, nullable — Character set of the file.
            - `filesize` integer — Size of the file in bytes.
            - `width` integer, nullable — Width of the file in pixels. Only applies to images.
            - `height` integer, nullable — Height of the file in pixels. Only applies to images.
            - `duration` integer, nullable — Duration of the file in seconds. Only applies to audio and video.
            - `embed` string, nullable — Where the file was embedded from.
            - `description` string, nullable — Description for the file.
            - `location` string, nullable — Where the file was created. Is automatically populated based on Exif data for images.
            - `tags` string[], nullable — Tags for the file. Is automatically populated based on Exif data for images.
            - `metadata` object, nullable — IPTC, Exif, and ICC metadata extracted from file
            - `focal_point_x` integer, nullable
            - `focal_point_y` integer, nullable
            - `tus_id` string, nullable
            - `tus_data` unknown
            - `uploaded_on` string, date-time — When the file was last uploaded/replaced.
        - `language` string — The user's language used in Directus.
        - `tfa_secret` string, nullable — The 2FA secret string that's used to generate one time passwords.
        - `status` 'active' | 'invited' | 'draft' | 'suspended' | 'deleted' — Status of the user.
        - `role` union — Unique identifier of the role of this user.
          - string
          - Roles
            - `id` string — Unique identifier for the role.
            - `name` string — Name of the role.
            - `icon` string — The role's icon.
            - `description` string, nullable — Description of the role.
            - `parent` union — $t:field_options.directus_roles.parent_note
              - …
            - `children` union[], nullable — $t:field_options.directus_roles.children_note
              - …
            - `policies` unknown
            - `users` union[], nullable
              - …
        - `token` string, nullable — Static token for the user.
        - `last_access` string, date-time, nullable — When this user used the API last.
        - `last_page` string, nullable — Last page that the user was on.
        - `provider` string
        - `external_identifier` string, nullable
        - `auth_data` unknown
        - `email_notifications` boolean, nullable
        - `appearance` string, nullable
        - `theme_dark` string, nullable
        - `theme_light` string, nullable
        - `theme_light_overrides` unknown
        - `theme_dark_overrides` unknown
        - `text_direction` string
        - `policies` unknown
    - `user_updated` union — User that updated the Comment.
      - string
      - Users
        - `id` string — Unique identifier for the user.
        - `first_name` string — First name of the user.
        - `last_name` string — Last name of the user.
        - `email` string, email — Unique email address for the user.
        - `password` string — Password of the user.
        - `location` string, nullable — The user's location.
        - `title` string, nullable — The user's title.
        - `description` string, nullable — The user's description.
        - `tags` string[], nullable — The user's tags.
        - `avatar` union — The user's avatar.
          - string
          - Files
            - `id` string — Unique identifier for the file.
            - `storage` string — Where the file is stored. Either `local` for the local filesystem or the name of the storage adapter (for example `s3`).
            - `filename_disk` string — Name of the file on disk. By default, Directus uses a random hash for the filename.
            - `filename_download` string — How you want to the file to be named when it's being downloaded.
            - `title` string — Title for the file. Is extracted from the filename on upload, but can be edited by the user.
            - `type` string — MIME type of the file.
            - `folder` union — Virtual folder where this file resides in.
              - …
            - `uploaded_by` union — Who uploaded the file.
              - …
            - `created_on` string, date-time — When the file was created.
            - `modified_by` union
              - …
            - `modified_on` string, date-time
            - `charset` string, nullable — Character set of the file.
            - `filesize` integer — Size of the file in bytes.
            - `width` integer, nullable — Width of the file in pixels. Only applies to images.
            - `height` integer, nullable — Height of the file in pixels. Only applies to images.
            - `duration` integer, nullable — Duration of the file in seconds. Only applies to audio and video.
            - `embed` string, nullable — Where the file was embedded from.
            - `description` string, nullable — Description for the file.
            - `location` string, nullable — Where the file was created. Is automatically populated based on Exif data for images.
            - `tags` string[], nullable — Tags for the file. Is automatically populated based on Exif data for images.
            - `metadata` object, nullable — IPTC, Exif, and ICC metadata extracted from file
            - `focal_point_x` integer, nullable
            - `focal_point_y` integer, nullable
            - `tus_id` string, nullable
            - `tus_data` unknown
            - `uploaded_on` string, date-time — When the file was last uploaded/replaced.
        - `language` string — The user's language used in Directus.
        - `tfa_secret` string, nullable — The 2FA secret string that's used to generate one time passwords.
        - `status` 'active' | 'invited' | 'draft' | 'suspended' | 'deleted' — Status of the user.
        - `role` union — Unique identifier of the role of this user.
          - string
          - Roles
            - `id` string — Unique identifier for the role.
            - `name` string — Name of the role.
            - `icon` string — The role's icon.
            - `description` string, nullable — Description of the role.
            - `parent` union — $t:field_options.directus_roles.parent_note
              - …
            - `children` union[], nullable — $t:field_options.directus_roles.children_note
              - …
            - `policies` unknown
            - `users` union[], nullable
              - …
        - `token` string, nullable — Static token for the user.
        - `last_access` string, date-time, nullable — When this user used the API last.
        - `last_page` string, nullable — Last page that the user was on.
        - `provider` string
        - `external_identifier` string, nullable
        - `auth_data` unknown
        - `email_notifications` boolean, nullable
        - `appearance` string, nullable
        - `theme_dark` string, nullable
        - `theme_light` string, nullable
        - `theme_light_overrides` unknown
        - `theme_dark_overrides` unknown
        - `text_direction` string
        - `policies` unknown
  - `meta` XMetadata
    - `total_count` integer — Returns the total item count of the collection you're querying.
    - `filter_count` integer — Returns the item count of the collection you're querying, taking the current filter/search parameters into account.

## Other responses

- `401` — Error: Unauthorized request

---

[API](https://skmtc.net/utomic-media/apis/dynamic-api-specification.md) · [All operations](https://skmtc.net/utomic-media/apis/dynamic-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/utomic-media/dynamic-api-specification/versions/4a0ccd34700e/schema)
