---
title: "Hide, unhide, or moderate a comment"
method: PATCH
path: "/api/v1/comments/{commentId}"
tags: ["Comments"]
---

# Hide, unhide, or moderate a comment

`PATCH /api/v1/comments/{commentId}`

## Request

- Base URL: `https://app.tryadeli.com`
- URL: `https://app.tryadeli.com/api/v1/comments/{commentId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/adeli/apis/adeli-api/docs/api/v1/comments/:commentId/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `commentId` string, required

## Request body

- object
  - `platform` 'instagram' | 'facebook' | 'tiktok' | 'youtube', required
  - `accountId` string, uuid, required
  - `profileId` string, uuid
  - `postId` string
  - `hidden` boolean
  - `liked` boolean

## Response `200`

Success

- object
  - `platform` 'instagram' | 'facebook' | 'tiktok' | 'youtube', required
  - `accountId` string, uuid, required
  - `profileId` string, uuid, required
  - `comment` object, required
    - `id` string, required
    - `hidden` boolean
    - `liked` boolean

## Other responses

- `400`: Invalid request or provider failure
- `401`: Missing or invalid API key
- `403`: The connection lacks a permission or provider-confirmed resource
- `404`: Profile, account, or object not found
- `422`: The connected account cannot perform this operation
- `429`: Provider quota or rate limit exhausted
- `502`: Invalid request or provider failure
- `503`: The platform is temporarily unavailable

---

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