---
title: "Update stored Dialogflow Connection"
method: PUT
path: "/dialogflow_connections/{connection_id}"
tags: ["Dialogflow Integration"]
---

# Update stored Dialogflow Connection

`PUT /dialogflow_connections/{connection_id}`

Updates the stored Dialogflow connection for the specified connection and returns the updated configuration.

## Path parameters

- `connection_id` string, required

## Request body

- DialogflowConnection
  - `conversation_profile_id` string — The id of a configured conversation profile on your Dialogflow account. (If you use Dialogflow CX, this param is required)
  - `dialogflow_api` 'cx' | 'es' — Determine which Dialogflow will be used.
  - `environment` string — Which Dialogflow environment will be used.
  - `location` string — The region of your agent is. (If you use Dialogflow CX, this param is required)
  - `service_account` object, required — The JSON map to connect your Dialoglow account.

## Response `200`

Return details of the Dialogflow connection associated with the given CallControl connection.

- DialogflowConnectionResponse
  - `data` object, required
    - `connection_id` string — Uniquely identifies a Telnyx application (Call Control).
    - `conversation_profile_id` string — The id of a configured conversation profile on your Dialogflow account. (If you use Dialogflow CX, this param is required)
    - `environment` string — Which Dialogflow environment will be used.
    - `record_type` string
    - `service_account` string — The JSON map to connect your Dialoglow account.

## Other responses

- `404` — Resource not found. The requested resource or URL could not be found.
- `422` — Unprocessable entity. The request was well-formed but contains semantic errors.
- `default` — Unexpected error.

---

[API](https://skmtc.net/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.net/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/team-telnyx/telnyx-api-2/revisions/ec31f78cf002/schema)
