# opinion.updated

URL: /docs/api-reference/endpoints/webhooks/opinion.updated

Webhook event `opinion.updated`: Orvelt sends a `POST` request to your destination.

A customer edited a submitted opinion's content.

Payload version 5. `data` is a snapshot of the resource after the change.

## Request body

```json
{
  "required": true,
  "description": "The Standard Webhooks envelope Orvelt sends to your destination.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "required": [
          "id",
          "type",
          "timestamp",
          "data"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The event ID. A retried delivery keeps it, so deduplicate on it."
          },
          "type": {
            "type": "string",
            "enum": [
              "opinion.updated"
            ],
            "description": "The event topic."
          },
          "timestamp": {
            "type": "string",
            "format": "date-time",
            "description": "When the change happened."
          },
          "data": {
            "type": "object",
            "properties": {
              "opinionId": {
                "type": "string",
                "format": "uuid"
              },
              "responseId": {
                "type": "string",
                "format": "uuid"
              },
              "projectId": {
                "type": "string",
                "format": "uuid"
              },
              "content": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "images": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "reports": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "privateAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "publishedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "store": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "caption": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                },
                "required": [
                  "name",
                  "caption"
                ],
                "additionalProperties": false
              },
              "customer": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "anonymous": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "anonymous"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "externalUserId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time"
              },
              "submittedAt": {
                "type": "string",
                "format": "date-time"
              },
              "changes": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "content"
                  ]
                }
              }
            },
            "required": [
              "opinionId",
              "responseId",
              "projectId",
              "content",
              "privateAt",
              "publishedAt",
              "store",
              "customer",
              "createdAt",
              "updatedAt",
              "submittedAt",
              "changes"
            ],
            "additionalProperties": false
          }
        }
      }
    }
  }
}
```

## Responses

```json
{
  "2XX": {
    "description": "Acknowledge the event. Any other status, or no response in time, is retried."
  }
}
```