---
title: "Upsert Google Service Gmail Account Key"
method: PUT
path: "/manage/admin/connector/gmail/service-account-key"
---

# Upsert Google Service Gmail Account Key

`PUT /manage/admin/connector/gmail/service-account-key`

## Request

- The document declares no server URL.
- Auth: API key in cookie `fastapiusersauth`
- TypeScript: <https://skmtc.dev/engineertheory/apis/recap-backend/docs/manage/admin/connector/gmail/service-account-key/put.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- GoogleServiceAccountKey
  - `type` string, required
  - `project_id` string, required
  - `private_key_id` string, required
  - `private_key` string, required
  - `client_email` string, required
  - `client_id` string, required
  - `auth_uri` string, required
  - `token_uri` string, required
  - `auth_provider_x509_cert_url` string, required
  - `client_x509_cert_url` string, required
  - `universe_domain` string, required

## Response `200`

Successful Response

- StatusResponse
  - `success` boolean, required
  - `message` string
  - `data` unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/engineertheory/apis/recap-backend.md) - [All operations](https://skmtc.dev/engineertheory/apis/recap-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/engineertheory/apis/recap-backend/revisions/ea9db8f9a24d?raw)
