---
title: "Instagram update media comment setting API: POST /{ig-media-id}"
description: "When PubNio calls Instagram's update media comment setting request, POST /{ig-media-id}: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Instagram update media comment setting API: POST /{ig-media-id}

PubNio calls Instagram's `POST /{ig-media-id}` (`IGMedia#update`) to turn comments on or off for a published post.

## How PubNio calls it

- Publishing: [`POST /api/v1/posts`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts) (unless it saves a draft), [`POST /api/v1/posts/{postId}/publish`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/publish), or [`POST /api/v1/posts/{postId}/targets/{targetId}/retry`](https://pubnio.com/api/v1/docs#tag/posts/POST/api/v1/posts/{postId}/targets/{targetId}/retry) starts the delivery.
- PubNio sends `comment_enabled` after the post publishes and after its first comment is sent, when the post asked for comments on or off. Stories are skipped.
- A 4xx answer that Meta does not flag `is_transient` marks the setting failed; a 5xx or a lost response leaves it unresolved.

## Scopes

- The pinned spec names no scope. See [Instagram scopes and permissions](https://pubnio.com/docs/providers/instagram/scopes/).
- Before a comment setting goes out, PubNio checks that the account granted the scopes for its sign-in method (Instagram Login: `instagram_business_manage_comments`; Facebook Login: `instagram_manage_comments`; Unified Login: `instagram_manage_comments`).

## Errors

No error page names this call; see [Instagram error codes](https://pubnio.com/docs/errors/instagram/).

## Spec and changes

`IGMedia#update` in the pinned spec, revision `5c1fa8a1653722b402133f033fcc321d67981bbd`.

Refreshed by hand: no weekly change record.

## Limits

- A failed comment setting does not unpublish or fail the post itself.

## Sources

- [Meta facebook-business-sdk-codegen API specs](https://github.com/facebook/facebook-business-sdk-codegen/tree/5c1fa8a1653722b402133f033fcc321d67981bbd)

## Related

- [Provider API operations PubNio calls](https://pubnio.com/docs/providers/operations/)
- [Instagram rate limits and quota](https://pubnio.com/docs/providers/instagram/quota/)

Source: https://pubnio.com/docs/providers/instagram/operations/ig-media-update/index.mdx
