Create Repository Credential
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.0.25.14 (latest)
Admin required.
root_project_id
is required.
credential_id
is required.
Request
PUT
/projects/{root_project_id}/credential/{credential_id}
Expand HTTP Path definition...
root_project_id
string
Root Project Id
credential_id
string
Credential Id
Expand HTTP Body definition...
body
Remote Project Information
Expand RepositoryCredential definition...
can
lock
object
Operations the current user is able to perform on this object
root_project_id
lock
string
Root project Id
remote_url
lock
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
lock
boolean
Whether the credentials have been configured for the Git Repository.
Response
200: Repository Credential
can
lock
object
Operations the current user is able to perform on this object
root_project_id
lock
string
Root project Id
remote_url
lock
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
lock
boolean
Whether the credentials have been configured for the Git Repository.
400: Bad Request
message
lock
string
Error details
documentation_url
lock
string
Documentation link
404: Not Found
message
lock
string
Error details
documentation_url
lock
string
Documentation link
409: Resource Already Exists
message
lock
string
Error details
documentation_url
lock
string
Documentation link
422: Validation Error
message
lock
string
Error details
Expand ValidationErrorDetail definition...
field
lock
string
Field with error
code
lock
string
Error code
message
lock
string
Error info message
documentation_url
lock
string
Documentation link
documentation_url
lock
string
Documentation link
429: Too Many Requests
message
lock
string
Error details
documentation_url
lock
string
Documentation link
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-20 UTC."],[],[],null,["# Create Repository Credential\n\nVersion 4.0.25.14 (latest)\n\n### Configure Repository Credential for a remote dependency\n\nAdmin required.\n\n`root_project_id` is required.\n`credential_id` is required.\n\nRequest\n-------\n\nPUT /projects/{root_project_id}/credential/{credential_id} \nDatatype \nDescription \nRequest \nHTTP Request \npath \nHTTP Path \nExpand HTTP Path definition... \nroot_project_id \nstring \nRoot Project Id \ncredential_id \nstring \nCredential Id \nbody \nHTTP Body \nExpand HTTP Body definition... \nbody \n[RepositoryCredential](/looker/docs/reference/looker-api/latest/types/RepositoryCredential) \nRemote Project Information\nExpand RepositoryCredential definition... \ncan \n*lock* \nobject \nOperations the current user is able to perform on this object \nid \n*lock* \nstring \nUnique Id \nroot_project_id \n*lock* \nstring \nRoot project Id \nremote_url \n*lock* \nstring \nGit remote repository url \ngit_username \nstring \nGit username for HTTPS authentication. \ngit_password \nstring \n(Write-Only) Git password for HTTPS authentication. \nssh_public_key \nstring \nPublic deploy key for SSH authentication. \nis_configured \n*lock* \nboolean \nWhether the credentials have been configured for the Git Repository.\n\nResponse\n--------\n\n### 200: Repository Credential\n\nDatatype \nDescription \n(object) \n[RepositoryCredential](/looker/docs/reference/looker-api/latest/types/RepositoryCredential) \ncan \n*lock* \nobject \nOperations the current user is able to perform on this object \nid \n*lock* \nstring \nUnique Id \nroot_project_id \n*lock* \nstring \nRoot project Id \nremote_url \n*lock* \nstring \nGit remote repository url \ngit_username \nstring \nGit username for HTTPS authentication. \ngit_password \nstring \n(Write-Only) Git password for HTTPS authentication. \nssh_public_key \nstring \nPublic deploy key for SSH authentication. \nis_configured \n*lock* \nboolean \nWhether the credentials have been configured for the Git Repository.\n\n### 400: Bad Request\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 404: Not Found\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 409: Resource Already Exists\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 422: Validation Error\n\nDatatype \nDescription \n(object) \n[ValidationError](/looker/docs/reference/looker-api/latest/types/ValidationError) \nmessage \n*lock* \nstring \nError details \nerrors \n[ValidationErrorDetail](/looker/docs/reference/looker-api/latest/types/ValidationErrorDetail)\\[\\] \nExpand ValidationErrorDetail definition... \nfield \n*lock* \nstring \nField with error \ncode \n*lock* \nstring \nError code \nmessage \n*lock* \nstring \nError info message \ndocumentation_url \n*lock* \nstring \nDocumentation link \ndocumentation_url \n*lock* \nstring \nDocumentation link\n\n### 429: Too Many Requests\n\nDatatype \nDescription \n(object) \n[Error](/looker/docs/reference/looker-api/latest/types/Error) \nmessage \n*lock* \nstring \nError details \ndocumentation_url \n*lock* \nstring \nDocumentation link"]]