---
title: "Upsert Gmail Service Account Credential"
method: PUT
path: "/manage/admin/connector/gmail/service-account-credential"
---

# Upsert Gmail Service Account Credential

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

Special API which allows the creation of a credential for a service account.
Combines the input with the saved service account key to create an entry in the
`Credential` table.

## Request body

- GoogleServiceAccountCredentialRequest
  - `google_drive_delegated_user` string
  - `gmail_delegated_user` string

## Response `200`

Successful Response

- ObjectCreationIdResponse
  - `id` union, required
    - integer
    - string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/engineertheory/apis/recap-backend.md) · [All operations](https://skmtc.net/engineertheory/apis/recap-backend/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/engineertheory/recap-backend/revisions/ea9db8f9a24d/schema)
