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

# Editar mensaje Instagram

> Edita el texto de un mensaje ya enviado (cuando está permitido).



## OpenAPI

````yaml /es/instagram-api/api-reference/openapi-instagram.json patch /v1/instagram/messages/{messageId}/edit
openapi: 3.0.3
info:
  title: Notifique API — Instagram
  version: 1.0.0
  description: >-
    Envíe DMs de Instagram y gestione conexiones. Autentíquese con
    `Authorization: Bearer sk_live_...` o `x-api-key`.
servers:
  - url: https://api.notifique.dev
    description: Producción
security:
  - ntfIgBearerAuth: []
  - ntfIgApiKeyHeader: []
tags:
  - name: 'Instagram: instancias'
    description: Criar, listar, desconectar e remover conexões Instagram.
  - name: 'Instagram: mensajes'
    description: Enviar, listar, editar, cancelar, apagar e inbound.
  - name: 'Instagram: comentarios'
    description: Listar, responder e moderar comentários.
paths:
  /v1/instagram/messages/{messageId}/edit:
    patch:
      tags:
        - 'Instagram: mensagens'
      summary: Editar mensaje Instagram
      description: Edita el texto de un mensaje ya enviado (cuando está permitido).
      operationId: ntfIg_editMessage
      parameters:
        - name: messageId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/NtfIg_EditMessageBody'
            example:
              text: Texto corrigido
      responses:
        '200':
          description: Editada.
          content:
            application/json:
              example:
                success: true
                data:
                  messageId: msg_abc
                  status: EDITED
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: object
                    properties:
                      messageId:
                        type: string
                        example: msg_abc
                      status:
                        type: string
                        example: EDITED
        '400':
          description: Fora da janela, limite ou tipo inválido.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfIg_ErrorResponse'
              examples:
                window:
                  summary: Janela
                  value:
                    success: false
                    error: Bad Request
                    code: EDIT_WINDOW_EXPIRED
                    message: Edit window expired
                limit:
                  summary: Limite
                  value:
                    success: false
                    error: Bad Request
                    code: EDIT_LIMIT_REACHED
                    message: Edit limit reached
        '403':
          description: Sem escopo instagram:update.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfIg_ErrorResponse'
        '404':
          description: Mensaje não encontrada.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfIg_ErrorResponse'
components:
  schemas:
    NtfIg_EditMessageBody:
      type: object
      required:
        - text
      properties:
        text:
          type: string
          minLength: 1
          maxLength: 1000
          example: Texto corrigido
    NtfIg_ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        message:
          type: string
        code:
          type: string
        details:
          type: object
          additionalProperties: true
        data:
          type: object
          additionalProperties: true
        retryAfterSec:
          type: integer
          description: >-
            Segundos até poder tentar de novo (presente em 429 de cooldown/abuse
            pause).
  securitySchemes:
    ntfIgBearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Authorization: Bearer sk_live_...'
    ntfIgApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````