All URIs are relative to https:///api/2.0
Method | HTTP request | Description |
---|---|---|
create_git_credential | POST /git-credentials | Create a Git credential entry |
delete_git_credential | DELETE /git-credentials/{credential_id} | Deletes the credential |
get_git_credential | GET /git-credentials/{credential_id} | Get a credential entry |
get_git_credential_list | GET /git-credentials | Get Git credentials |
update_git_credential | PATCH /git-credentials/{credential_id} | Updates the credential |
crate::models::GetCredentialResponse create_git_credential(create_credential_request) Create a Git credential entry
Creates a Git credential entry for the user. Only one Git credential per user is supported, so any attempts to create credentials if an entry already exists will fail. Use the PATCH endpoint to update existing credentials, or the DELETE endpoint to delete existing credentials.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
create_credential_request | CreateCredentialRequest | Details required to create a Git credential entry | [required] |
crate::models::GetCredentialResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_git_credential(credential_id) Deletes the credential
Deletes the specified credential
Name | Type | Description | Required | Notes |
---|---|---|---|---|
credential_id | String | The ID for the corresponding credential to access. | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetCredentialResponse get_git_credential(credential_id) Get a credential entry
Returns the credential with the given credential ID.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
credential_id | String | The ID for the corresponding credential to access. | [required] |
crate::models::GetCredentialResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetCredentialsResponse get_git_credential_list() Get Git credentials
Returns the calling user's Git credentials. One credential per user is supported.
This endpoint does not need any parameter.
crate::models::GetCredentialsResponse
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetCredentialResponse update_git_credential(credential_id, update_credential_request) Updates the credential
Updates the credential.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
credential_id | String | The ID for the corresponding credential to access. | [required] | |
update_credential_request | UpdateCredentialRequest | Details required to update the credential | [required] |
crate::models::GetCredentialResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]