{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/activecampaign/main/json-schema/activecampaign-patched-conversation-edit-schema.json",
  "title": "PatchedConversationEdit",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/activecampaign-conversations-api-openapi.yml#/components/schemas/PatchedConversationEdit",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The UUID of the Conversation."
    },
    "contact": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "$ref": "#/$defs/ConversationStatusEnum"
    },
    "assigned": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserBasicEdit"
      },
      "description": "The Users assigned to the Conversation."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ConversationTag"
      },
      "description": "The Tags assigned to the Conversation."
    },
    "created_on": {
      "type": "string",
      "format": "date-time",
      "readOnly": true,
      "title": "Creado el"
    },
    "source": {
      "allOf": [
        {
          "$ref": "#/$defs/ConversationSourceEnum"
        }
      ],
      "readOnly": true
    },
    "assigned_team": {
      "type": "integer",
      "description": "The ID of the Team assigned to the Conversation."
    },
    "channel": {
      "type": [
        "integer",
        "null"
      ]
    }
  },
  "$defs": {
    "ConversationSourceEnum": {
      "enum": [
        "INBOX",
        "AUTO_RESPONSE",
        "API",
        "BROADCAST",
        "FLOW",
        "UNKNOWN"
      ],
      "type": "string",
      "description": "* `INBOX` - Inbox\n* `AUTO_RESPONSE` - Auto Response\n* `API` - Api\n* `BROADCAST` - Broadcast\n* `FLOW` - Flow\n* `UNKNOWN` - Unknown"
    },
    "ConversationStatusEnum": {
      "enum": [
        "CREATED",
        "FLOW",
        "NEW",
        "IN_PROGRESS",
        "RESOLVED",
        "CLOSED"
      ],
      "type": "string",
      "description": "* `CREATED` - Created\n* `FLOW` - Flow\n* `NEW` - New\n* `IN_PROGRESS` - In Progress\n* `RESOLVED` - Resolved\n* `CLOSED` - Closed"
    },
    "ConversationTag": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "maxLength": 100
        }
      },
      "required": [
        "id",
        "name"
      ]
    },
    "UserBasicEdit": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        }
      },
      "required": [
        "id"
      ]
    }
  }
}