---
title: "Update conversation status"
method: POST
path: "/chat/conversation/{conversation_id}/status-change"
tags: ["Chat"]
---

# Update conversation status

`POST /chat/conversation/{conversation_id}/status-change`

This updates the conversation status

## Request body

- ConversationStatusChangeBodyParamDef
  - `operation` 'close' | 'reopen', required
  - `operation_data` object
    - `activity` object
      - `activity_type` string
      - `description` string
      - `comment` string

## Response `200`

The response after the status has been changed of a conversation

- ConversationGetParamResponseDef
  - `_id` string, required
  - `updated_at` string, date-time, required
  - `created_at` string, date-time, required
  - `__v` integer, required
  - `conversation_uuid` string, uuid
  - `medium` 'sms' | 'chat' | 'whatsapp'
  - `type` 'candidate_support' | 'system_support' | 'candidate_support_initiated' | 'system_support_initiated'
  - `name` string
  - `first_message` string
  - `channel_id` string, required
  - `channel_attributes` object, required
  - `status` 'open' | 'closing' | 'closed' | 'orphan' | 'archived', required
  - `created_by` object, required
    - `user_id` string, required
    - `context_type` string, required
    - `context_id` string
  - `note_channel_id` string, required
  - `note_channel_attributes` object, required
  - `team` object
    - `team_id` string
    - `team_name` string
  - `owner` object, required
    - `resource_type` 'agency' | 'agencygroup' | 'systemadmin', required
    - `resource_id` string
  - `participants` object[]
    - `user_id` string, required
  - `bots` object[]
    - `_id` string, required
    - `name` string, required
    - `avatar` string, required

## Other responses

- `304` — No modified. No records were modified based on your query.
- `400` — Conversation status validation response definition
- `401` — Failed to authenticate the user making the request
- `403` — Permission denied error
- `404` — Resource not found
- `409` — Failed when some conflicts occurred with the data
- `412` — Failed some pre condition on business logic
- `default` — Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) · [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/staffshift/staffshift-api-gateway/revisions/6e2cb83db3a9/schema)
