Skip to content

Set conversation state

PUT/admin/v1/stores/{store_id}/conversations/{conversation_id}/state
  • messages:write

Opens the conversation again, or puts it away as done; the customer's next message opens it again.

Path parameters

  • store_idstringrequired

    The store's ID, like store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.

  • conversation_idstringrequired

    The conversation's ID, like conv_01k8qs5s….

Headers

  • shop-api-versionYYYY-MM

    The version to answer in. Without it, your app’s pinned version, else the newest.

Body

  • stateenumrequired

    Whether the team still has something to do in a conversation.

    • open
    • done

Returns

204 Changed.

Errors

  • 404not_foundNo such conversation.