---
title: "PUT /greengrass/things/{thingName}/connectivityInfo"
method: PUT
path: "/greengrass/things/{thingName}/connectivityInfo"
---

# PUT /greengrass/things/{thingName}/connectivityInfo

`PUT /greengrass/things/{thingName}/connectivityInfo`

Updates connectivity information for a Greengrass core device.

Connectivity information includes endpoints and ports where client devices can connect to an MQTT broker on the core device. When a client device calls the [IoT Greengrass discovery API](https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-discover-api.html), IoT Greengrass returns connectivity information for all of the core devices where the client device can connect. For more information, see [Connect client devices to core devices](https://docs.aws.amazon.com/greengrass/v2/developerguide/connect-client-devices.html) in the _IoT Greengrass Version 2 Developer Guide_.

## Path parameters

- `thingName` string, required

## Request body

- object
  - `ConnectivityInfo` ConnectivityInfo[], required — The connectivity information for the core device.
    - `id` string — An ID for the connectivity information.
    - `hostAddress` string — The IP address or DNS address where client devices can connect to an MQTT broker on the Greengrass core device.
    - `portNumber` integer — The port where the MQTT broker operates on the core device. This port is typically 8883, which is the default port for the MQTT broker component that runs on core devices.
    - `metadata` string — Additional metadata to provide to client devices that connect to this core device.

## Response `200`

Success

- UpdateConnectivityInfoResponse
  - `version` string — The new version of the connectivity information for the core device.
  - `message` string — A message about the connectivity information update request.

## Other responses

- `480` — ValidationException
- `481` — InternalServerException

---

[API](https://skmtc.net/aws/apis/greengrassv2.md) · [All operations](https://skmtc.net/aws/apis/greengrassv2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/greengrassv2/versions/f491b1d234d1/schema)
