Git Providers

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.

Changed on
patch/git-providers/{provider_id}/credentials

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Path parameters

provider_idinteger required

Git provider ID

Request body

app_idstring nullable

Application ID (GitHub App integer as string; GitLab App string).

app_secretstring password nullable

A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

client_idstring nullable

OAuth client ID (GitLab OAuth, GitHub App).

client_secretstring password nullable

A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

passwordstring password nullable

A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

private_keystring password nullable

A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

public_keystring nullable

SSH public key (one OpenSSH line) of an SSH-key provider. Replaced together with private_key, which then carries the SSH private key.

redirect_uristring nullable

OAuth redirect URI (GitLab OAuth / GitLab App).

tokenstring password nullable

A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

usernamestring nullable

Username of a basic-auth provider (generic Git server, Bitbucket app password). Omit to keep the stored username.

webhook_secretstring password nullable

A credential. Write-only: it is never returned, and the AI assistant supplies it through a secret slot instead of typing it into the conversation.

Response

Credentials updated

auth_methodstring required
base_urlstring nullable
created_atstring date-time required
idinteger required
is_activeboolean required
is_defaultboolean required
namestring required
provider_typestring required
updated_atstring date-time required
updated_fieldsstring[] required

Names of the fields that were replaced, e.g. ["password"]. Fields that do not apply to the provider's auth method are not listed.

Changes

    • breaking

      the response's body type changed from object to no type for status

    • breaking

      removed the required property auth_method from the response with the status

    • breaking

      removed the required property created_at from the response with the status

    11 more changes in this revision