v2

latestOpenAPI 3.0.02026-08-013312111.4 MB
Pipelines

Update 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.

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

Path parameters

workspacestring required

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

repo_slugstring required

The repository.

Request body

typestring required
private_keystring

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

public_keystring

The SSH public key.

Response

The SSH key pair was created or updated.

typestring required
private_keystring

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

public_keystring

The SSH public key.