devices

POST /v1/devices:requestSync

Changed on

Requests Google to send an action.devices.SYNC intent to your smart home Action to update device metadata for the given user. The third-party user's identity is passed via the agent_user_id (see RequestSyncDevicesRequest). This request must be authorized using service account credentials from your Actions console project.

Request

  • Base URL
    https://homegraph.googleapis.com
  • URL
    https://homegraph.googleapis.com/v1/devices:requestSync
  • Auth
    OAuth 2 and OAuth 2
    Implicit: https://accounts.google.com/o/oauth2/auth
    Scopes: https://www.googleapis.com/auth/homegraph
    Authorization code: https://accounts.google.com/o/oauth2/auth
    Token URL: https://accounts.google.com/o/oauth2/token scopes: https://www.googleapis.com/auth/homegraph

Request body

agentUserIdstring

Required. Third-party user ID.

asyncboolean

Optional. If set, the request will be added to a queue and a response will be returned immediately. This enables concurrent requests for the given agent_user_id, but the caller will not receive any error responses.

Response

Successful response

RequestSyncDevicesResponse required

Response type for the RequestSyncDevices call. Intentionally empty upon success. An HTTP response code is returned with more details upon failure.

Changes

    • breaking

      removed the request body

    • breaking

      removed the media type */* for the response with the status