---
title: "Updates the owner of the specific conversation"
method: PUT
path: "/chat/conversation/{conversation_id}/owner"
tags: ["Chat"]
---

# Updates the owner of the specific conversation

`PUT /chat/conversation/{conversation_id}/owner`

## Request body

- ConversationOwnerChangeBodyDef
  - `resource_type` 'agency' | 'agencygroup' | 'systemadmin', required
  - `resource_id` string

## Response `200`

The updated owner of conversation will be returned

- 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

- `400` — Usually caused by invalid input
- `401` — Failed to authenticate the user making the request
- `403` — Permission denied error
- `404` — Resource not found
- `405` — Method not supported. Returned if an unsupported http method is used.
- `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)
