Create Repository Credential

Version 4.0.24.12

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
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
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)
message
string
Error details
documentation_url
string
Documentation link

404: Not Found

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

409: Resource Already Exists

Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link

422: Validation Error

Datatype
Description
(object)
message
string
Error details
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)
message
string
Error details
documentation_url
string
Documentation link