# How to update conversations via API?

The update endpoint keeps your inbox organized programmatically: change a
conversation's status as it moves through your workflow, and assign it to the
right teammate.


UPDATE A CONVERSATION

curl -s -X PATCH \
  -H "Authorization: Bearer $HC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "status": "pending",
    "assignee": "USER_ID"
  }' \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/conversations/CONVERSATION_ID"

Requires the conversation.write scope. At least one field must be provided; the
response is the updated conversation.

FieldDescription statusOne of open, pending, closed. Any other value returns 400
invalid_status. assigneeA user ID from your center, or null to unassign. A user
outside the center returns 400 invalid_assignee.


STATUS VALUES

StatusMeaning openNew or active — needs attention. pendingIn progress — being
worked on but not closed. closedResolved.


ASSIGN AND UNASSIGN

Find user IDs with the center users endpoint:

curl -s -X GET \
  -H "Authorization: Bearer $HC_API_KEY" \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/users"

Then pass the ID as assignee — or null to leave the conversation unassigned:

curl -s -X PATCH \
  -H "Authorization: Bearer $HC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "assignee": null }' \
  "https://api.help.center/v0/centers/$HC_CENTER_ID/conversations/CONVERSATION_ID"

Tip

> Closing or re-opening a conversation is a deliberate action your team can see.
> If you build automation on this endpoint, make status changes explicit and
> logged — not a side effect. Updates also fire the conversation_updated webhook
> [https://developers.help.center/article/1025-how-do-webhooks-work], so
> downstream systems can react.


ENDPOINT REFERENCE

ActionMethodEndpointScope Update
conversationPATCH/v0/centers/:centerId/conversations/:conversationIdconversation.write
List center usersGET/v0/centers/:centerId/usersconversation.read


NEXT STEPS

 * How to participate in discussions via API?
   [https://developers.help.center/article/1024-how-to-participate-in-discussions-via-api]
 * How to reply to customers via API?
   [https://developers.help.center/article/1019-how-to-reply-to-customers-via-api]