Update Conversation

POST /conversations/{id}

Update a conversation by its id.

Path parameters

  • id string Required

    Id of the conversation

application/json

Body

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
  • 422 application/json

    Request valiadtion failure.

    Hide response attributes Show response attributes object
POST /conversations/{id}
curl \
 -X POST https://getcody.ai/api/v1/conversations/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"name":"string","bot_id":"string"}'
Request example
{
  "name": "string",
  "bot_id": "string"
}
Response examples (200)
{
  "data": {
    "id": "string",
    "name": "string",
    "bot_id": "string",
    "created_at": 42
  }
}
Response examples (422)
{
  "message": "The selected bot id is invalid.",
  "errors": {
    "bot_id": [
      "The selected bot id is invalid."
    ]
  }
}