Create Repository Credential

Version 4.0.25.2 (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
root_project_id
string
Root Project Id
credential_id
string
Credential Id
body
HTTP Body
body
Remote Project Information
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

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.
Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link
Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link
Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link
Datatype
Description
(object)
message
string
Error details
field
string
Field with error
code
string
Error code
message
string
Error info message
documentation_url
string
Documentation link
documentation_url
string
Documentation link
Datatype
Description
(object)
message
string
Error details
documentation_url
string
Documentation link