Skip to content

Update SSH key pair

PUT
/repositories/{workspace}/{repo_slug}/pipelines_config/ssh/key_pair

Create or update the repository SSH key pair. The private key will be set as a default SSH identity in your build container.

workspace
required
string

This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example {workspace UUID}.

repo_slug
required
string

The repository.

The created or updated SSH key pair.

Media type application/json
object
type
required
string
private_key

The SSH private key. This value will be empty when retrieving the SSH key pair.

string
public_key

The SSH public key.

string
Example generated
{
"type": "example",
"private_key": "example",
"public_key": "example"
}

The SSH key pair was created or updated.

Media type application/json
object
type
required
string
private_key

The SSH private key. This value will be empty when retrieving the SSH key pair.

string
public_key

The SSH public key.

string
Example generated
{
"type": "example",
"private_key": "example",
"public_key": "example"
}

The account, repository or SSH key pair was not found.

Media type application/json
Error

Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.

object
type
required
string
error
object
message
required
string
detail
string
data

Optional structured data that is endpoint-specific.

object
key
additional properties
any
key
additional properties
any
Example generated
{
"type": "example",
"error": {
"message": "example",
"detail": "example",
"data": {}
}
}