---
title: "Create or update one admin-managed provider credential"
method: PUT
path: "/admin/provider-credentials"
tags: ["admin"]
---

# Create or update one admin-managed provider credential

`PUT /admin/provider-credentials`

Registers (or re-registers) the provider into the running gateway immediately, without a restart.

## Request body

- AdminUpsertProviderCredentialRequest
  - `api_keys` string[]
  - `api_mode` string
  - `api_version` string
  - `auth_type` string
  - `backend` string
  - `base_url` string
  - `enabled` boolean
  - `gcp_scope` string
  - `models` string[]
  - `name` string
  - `service_account_file` string
  - `service_account_json` string
  - `service_account_json_base64` string
  - `type` string
  - `vertex_location` string
  - `vertex_project` string

## Response `200`

OK

- AdminProviderCredentialViewResponse
  - `api_keys` string[]
  - `api_mode` string
  - `api_version` string
  - `auth_type` string
  - `backend` string
  - `base_url` string
  - `created_at` string
  - `enabled` boolean
  - `gcp_scope` string
  - `managed` boolean
  - `models` string[]
  - `name` string
  - `service_account_file` string
  - `service_account_json` string
  - `service_account_json_base64` string
  - `type` string
  - `updated_at` string
  - `vertex_location` string
  - `vertex_project` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `502` — Bad Gateway
- `503` — Service Unavailable

---

[API](https://skmtc.net/enterpilot/apis/gomodel-api.md) · [All operations](https://skmtc.net/enterpilot/apis/gomodel-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/enterpilot/gomodel-api/revisions/4c27ea61fcfe/schema)
