---
title: "Changes to Partially update credentials for an existing git provider. Only the fields\nyou send are replaced; omitted fields keep their stored values. Basic-auth\nproviders rotate `username`/`password`, SSH-key providers `private_key` and\n`public_key` together; both refuse fields of another auth method. For the\nother auth methods, fields that don't apply are ignored. A new token or\npassword is also written to the provider's connections. The response names\nthe replaced fields, never their values."
method: PATCH
path: "/git-providers/{provider_id}/credentials"
---

# Changes to Partially update credentials for an existing git provider. Only the fields
you send are replaced; omitted fields keep their stored values. Basic-auth
providers rotate `username`/`password`, SSH-key providers `private_key` and
`public_key` together; both refuse fields of another auth method. For the
other auth methods, fields that don't apply are ignored. A new token or
password is also written to the provider's connections. The response names
the replaced fields, never their values.

`PATCH /git-providers/{provider_id}/credentials`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 7 of 383 revisions.

- **2026-11-26** `199b8052eb32`: 9 breaking, 1 warning, 4 info
- **2026-10-23** `7d41b820a372`: 10 breaking, 5 info
- **2026-10-23** `24af93ff5379`: 10 breaking, 5 info
- **2026-10-22** `842d42ed4659`: 10 breaking, 5 info
- **2026-10-22** `1a12a50b75ee`: 10 breaking, 5 info
- **2026-10-21** `79089e9f49ee`: 10 breaking, 5 info
- **2026-05-30** `b72341d12f63`: 1 info

## Changes

- **2026-11-26** `199b8052eb32`: 9 breaking, 1 warning, 4 info
  - the response's body type changed from `object` to no type for status `200`
  - removed the required property `auth_method` from the response with the `200` status
  - removed the required property `created_at` from the response with the `200` status
  - removed the required property `id` from the response with the `200` status
  - removed the required property `is_active` from the response with the `200` status
  - removed the required property `is_default` from the response with the `200` status
  - removed the required property `name` from the response with the `200` status
  - removed the required property `provider_type` from the response with the `200` status
  - removed the required property `updated_at` from the response with the `200` status
  - removed the optional property `base_url` from the response with the `200` status
  - added the new optional request property `password`
  - added the new optional request property `public_key`
  - added the new optional request property `username`
  - added `#/components/schemas/ProviderResponse, subschema #2` to the response body `allOf` list for the response status `200`
- **2026-10-23** `7d41b820a372`: 10 breaking, 5 info
  - the request property `app_secret` became not nullable
  - the request property `client_secret` became not nullable
  - the request property `private_key` became not nullable
  - the request property `token` became not nullable
  - the request property `webhook_secret` became not nullable
  - the `app_secret` request property type changed from `string, null` to no type
  - the `client_secret` request property type changed from `string, null` to no type
  - the `private_key` request property type changed from `string, null` to no type
  - the `token` request property type changed from `string, null` to no type
  - the `webhook_secret` request property type changed from `string, null` to no type
  - added `#/components/schemas/SecretString, subschema #2` to the `app_secret` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `client_secret` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `private_key` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `token` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `webhook_secret` request property `oneOf` list
- **2026-10-23** `24af93ff5379`: 10 breaking, 5 info
  - removed `#/components/schemas/SecretString, subschema #2` from the `app_secret` request property `oneOf` list
  - removed `#/components/schemas/SecretString, subschema #2` from the `client_secret` request property `oneOf` list
  - removed `#/components/schemas/SecretString, subschema #2` from the `private_key` request property `oneOf` list
  - removed `#/components/schemas/SecretString, subschema #2` from the `token` request property `oneOf` list
  - removed `#/components/schemas/SecretString, subschema #2` from the `webhook_secret` request property `oneOf` list
  - the `app_secret` request property type changed from no type to `string, null`
  - the `client_secret` request property type changed from no type to `string, null`
  - the `private_key` request property type changed from no type to `string, null`
  - the `token` request property type changed from no type to `string, null`
  - the `webhook_secret` request property type changed from no type to `string, null`
  - the request property `app_secret` became nullable
  - the request property `client_secret` became nullable
  - the request property `private_key` became nullable
  - the request property `token` became nullable
  - the request property `webhook_secret` became nullable
- **2026-10-22** `842d42ed4659`: 10 breaking, 5 info
  - the request property `app_secret` became not nullable
  - the request property `client_secret` became not nullable
  - the request property `private_key` became not nullable
  - the request property `token` became not nullable
  - the request property `webhook_secret` became not nullable
  - the `app_secret` request property type changed from `string, null` to no type
  - the `client_secret` request property type changed from `string, null` to no type
  - the `private_key` request property type changed from `string, null` to no type
  - the `token` request property type changed from `string, null` to no type
  - the `webhook_secret` request property type changed from `string, null` to no type
  - added `#/components/schemas/SecretString, subschema #2` to the `app_secret` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `client_secret` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `private_key` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `token` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `webhook_secret` request property `oneOf` list
- **2026-10-22** `1a12a50b75ee`: 10 breaking, 5 info
  - removed `#/components/schemas/SecretString, subschema #2` from the `app_secret` request property `oneOf` list
  - removed `#/components/schemas/SecretString, subschema #2` from the `client_secret` request property `oneOf` list
  - removed `#/components/schemas/SecretString, subschema #2` from the `private_key` request property `oneOf` list
  - removed `#/components/schemas/SecretString, subschema #2` from the `token` request property `oneOf` list
  - removed `#/components/schemas/SecretString, subschema #2` from the `webhook_secret` request property `oneOf` list
  - the `app_secret` request property type changed from no type to `string, null`
  - the `client_secret` request property type changed from no type to `string, null`
  - the `private_key` request property type changed from no type to `string, null`
  - the `token` request property type changed from no type to `string, null`
  - the `webhook_secret` request property type changed from no type to `string, null`
  - the request property `app_secret` became nullable
  - the request property `client_secret` became nullable
  - the request property `private_key` became nullable
  - the request property `token` became nullable
  - the request property `webhook_secret` became nullable
- **2026-10-21** `79089e9f49ee`: 10 breaking, 5 info
  - the request property `app_secret` became not nullable
  - the request property `client_secret` became not nullable
  - the request property `private_key` became not nullable
  - the request property `token` became not nullable
  - the request property `webhook_secret` became not nullable
  - the `app_secret` request property type changed from `string, null` to no type
  - the `client_secret` request property type changed from `string, null` to no type
  - the `private_key` request property type changed from `string, null` to no type
  - the `token` request property type changed from `string, null` to no type
  - the `webhook_secret` request property type changed from `string, null` to no type
  - added `#/components/schemas/SecretString, subschema #2` to the `app_secret` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `client_secret` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `private_key` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `token` request property `oneOf` list
  - added `#/components/schemas/SecretString, subschema #2` to the `webhook_secret` request property `oneOf` list
- **2026-05-30** `b72341d12f63`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/gotempsh/apis/temps/docs/git-providers/:provider_id/credentials/patch.md) - [API](https://skmtc.dev/gotempsh/apis/temps.md) - [Page](https://skmtc.dev/gotempsh/apis/temps/changes/git-providers/:provider_id/credentials/patch)
