---
title: "Update an incident Google Chat configuration"
method: PATCH
path: "/api/v2/incidents/config/google-chat-configurations/{id}"
tags: ["Incidents"]
---

# Update an incident Google Chat configuration

`PATCH /api/v2/incidents/config/google-chat-configurations/{id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/incidents/config/google-chat-configurations/{id}`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `incident_settings_write`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/incidents/config/google-chat-configurations/:id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update a Google Chat configuration for incidents.

## Path parameters

- `id` string, uuid, required

## Request body

- IncidentGoogleChatConfigurationPatchRequest: Request payload for patching a Google Chat configuration.
  - `data` IncidentGoogleChatConfigurationPatchDataRequest, required: Google Chat configuration data in a patch request.
    - `attributes` IncidentGoogleChatConfigurationPatchDataAttributesRequest: Attributes for patching a Google Chat configuration. All fields are optional.
      - `domain_id` string: The Google Chat domain ID.
      - `space_name_template` string: The template for the Google Chat space name.
      - `space_target_audience_id` string: The target audience ID for the Google Chat space.
      - `space_time_zone` string: The time zone for the Google Chat space.
    - `id` string, uuid, required: The configuration identifier.
    - `type` 'google_chat_configurations', required: Google Chat configuration resource type.

## Response `200`

OK

- IncidentGoogleChatConfigurationResponse: Response with a Google Chat configuration.
  - `data` IncidentGoogleChatConfigurationDataResponse, required: Google Chat configuration data in a response.
    - `attributes` IncidentGoogleChatConfigurationDataAttributesResponse, required: Attributes of a Google Chat configuration.
      - `created_at` string, date-time, required: Timestamp when the configuration was created.
      - `domain_id` string, required: The Google Chat domain ID.
      - `modified_at` string, date-time, required: Timestamp when the configuration was last modified.
      - `space_name_template` string, required: The template for the Google Chat space name.
      - `space_target_audience_id` string, required: The target audience ID for the Google Chat space.
      - `space_time_zone` string, required: The time zone for the Google Chat space.
    - `id` string, uuid, required: The configuration identifier.
    - `relationships` IncidentGoogleChatConfigurationRelationships: Relationships for a Google Chat configuration.
      - `created_by_user` RelationshipToUser: Relationship to user.
        - `data` RelationshipToUserData, required: Relationship to user object.
          - `id` string, required: A unique identifier that represents the user.
          - `type` 'users', required: Users resource type.
      - `incident_type` RelationshipToIncidentType: Relationship to an incident type.
        - `data` RelationshipToIncidentTypeData, required: Relationship to incident type object.
          - `id` string, required: The incident type's ID.
          - `type` 'incident_types', required: Incident type resource type.
      - `last_modified_by_user` RelationshipToUser: Relationship to user.
        - `data` RelationshipToUserData, required: Relationship to user object.
          - `id` string, required: A unique identifier that represents the user.
          - `type` 'users', required: Users resource type.
    - `type` 'google_chat_configurations', required: Google Chat configuration resource type.
  - `included` IncidentUserData[]: Included related resources.
    - `attributes` IncidentUserAttributes: Attributes of user object returned by the API.
      - `email` string: Email of the user.
      - `handle` string: Handle of the user.
      - `icon` string: URL of the user's icon.
      - `name` string, nullable: Name of the user.
      - `uuid` string: UUID of the user.
    - `id` string: ID of the user.
    - `type` 'users': Users resource type.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/3f70db624329?raw)
