Version 4.0.26.22 (latest)

### Configure Repository Credential for a remote dependency

Admin required.

`root_project_id` is required.
`credential_id` is required.

## Request

PUT /projects/{root_project_id}/credential/{credential_id} Datatype Description Request HTTP Request path HTTP Path Expand HTTP Path definition... root_project_id string Root Project Id credential_id string Credential Id body HTTP Body Expand HTTP Body definition... body [RepositoryCredential](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/RepositoryCredential) Remote Project Information Expand RepositoryCredential definition... can object Operations the current user is able to perform on this object id string Unique Id root_project_id string Root project Id remote_url string Git remote repository url git_username string Git username for HTTPS authentication. git_password string (Write-Only) Git password for HTTPS authentication. ssh_public_key string Public deploy key for SSH authentication. is_configured boolean Whether the credentials have been configured for the Git Repository.

## Response

### 200: Repository Credential

Datatype Description (object) [RepositoryCredential](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/RepositoryCredential) can object Operations the current user is able to perform on this object id string Unique Id root_project_id string Root project Id remote_url string Git remote repository url git_username string Git username for HTTPS authentication. git_password string (Write-Only) Git password for HTTPS authentication. ssh_public_key string Public deploy key for SSH authentication. is_configured boolean Whether the credentials have been configured for the Git Repository.

### 400: Bad Request

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link

### 404: Not Found

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link

### 409: Resource Already Exists

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link

### 422: Validation Error

Datatype Description (object) [ValidationError](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/ValidationError) message string Error details errors [ValidationErrorDetail](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/ValidationErrorDetail)\[\] Expand ValidationErrorDetail definition... field string Field with error code string Error code message string Error info message documentation_url string Documentation link documentation_url string Documentation link

### 429: Too Many Requests

Datatype Description (object) [Error](https://docs.cloud.google.com/looker/docs/reference/looker-api/latest/types/Error) message string Error details documentation_url string Documentation link