Copy the Chatwoot (v4.14.0) frontend runnable subset into frontend/ for customization: - app/javascript/ (Vue SPA: dashboard, widget, sdk, portal, superadmin) - app/views/ (ERB templates for vite-plugin-ruby entrypoint resolution) - app/helpers/, app/assets/ (Rails view helpers, static assets) - enterprise/ (Enterprise edition frontend overlay) - config/vite.json, vite.config.ts, bin/vite (Vite-Rails toolchain) - package.json, pnpm-lock.yaml, tailwind/postcss/eslint configs - Gemfile, Gemfile.lock (vite_rails gem for bin/vite binstub) Excluded Rails backend: controllers, models, services, jobs, mailers, policies, db, lib, spec, public, node_modules. Update references to the new frontend location: - .gitignore: exclude frontend build artifacts (node_modules, tmp, packs), keep frontend/bin/ and frontend/vendor/ via negation - backend/scripts/parity_frontend_smoke.sh: CHATWOOT_DIR default reference/chatwoot -> ../frontend - backend/scripts/parity_frontend_browser_smoke.mjs: same default update - AGENTS.md: add frontend section with Rails/Vite coupling notes - README: architecture tree includes frontend/
68 lines
2.0 KiB
YAML
68 lines
2.0 KiB
YAML
tags:
|
|
- Conversations
|
|
operationId: toggle-status-of-a-conversation
|
|
summary: Toggle Status
|
|
description: |-
|
|
Toggle the status of a conversation. Pass `status` to explicitly set the
|
|
conversation state. Use `snoozed` along with `snoozed_until` to snooze a
|
|
conversation until a specific time. If `snoozed_until` is omitted, the
|
|
conversation is snoozed until the next reply from the contact. Regardless
|
|
of the value provided, snoozed conversations always reopen on the next
|
|
reply from the contact.
|
|
security:
|
|
- userApiKey: []
|
|
- agentBotApiKey: []
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
required:
|
|
- status
|
|
properties:
|
|
status:
|
|
type: string
|
|
enum: ['open', 'resolved', 'pending', 'snoozed']
|
|
description: The status of the conversation
|
|
example: open
|
|
snoozed_until:
|
|
type: number
|
|
description: When status is `snoozed`, schedule the reopen time as a Unix timestamp in seconds.
|
|
If not provided, the conversation is snoozed until the next
|
|
customer reply. The conversation always reopens when the
|
|
customer replies.
|
|
example: 1757506877
|
|
responses:
|
|
'200':
|
|
description: Success
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
meta:
|
|
type: object
|
|
payload:
|
|
type: object
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
current_status:
|
|
type: string
|
|
enum: ['open', 'resolved', 'pending', 'snoozed']
|
|
conversation_id:
|
|
type: number
|
|
'404':
|
|
description: Conversation not found
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/bad_request_error'
|
|
'401':
|
|
description: Unauthorized
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/bad_request_error'
|