{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketsdk/json-schema/marketsdk-create-moderation-action-dto-schema.json",
  "title": "CreateModerationActionDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketsdk-moderation-api-openapi.yml#/components/schemas/CreateModerationActionDto",
  "type": "object",
  "properties": {
    "target": {
      "type": "string",
      "description": "The listing, seller, or review acted on."
    },
    "action": {
      "type": "string",
      "enum": [
        "dismiss",
        "remove_content",
        "suspend_seller",
        "reinstate_seller"
      ],
      "description": "`dismiss` closes the open flags and changes nothing else. `remove_content` removes a listing or a review; a removed review stops counting toward reputation. `suspend_seller` suspends the seller, or the seller of a listing, or a seller who wrote a review: they cannot publish or take orders, and their listings leave search. `reinstate_seller` lifts a suspension."
    },
    "reason": {
      "type": "string",
      "maxLength": 2000,
      "description": "Why. Kept with the action."
    },
    "actor": {
      "type": "string",
      "maxLength": 200,
      "description": "Who on your team took the action, for the log."
    }
  },
  "required": [
    "target",
    "action",
    "reason",
    "actor"
  ]
}