> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Or Update Repo SSHKey

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

<Note>
  External Documentation

  To learn more, visit the [Bitbucket documentation](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-ssh/#api-users-selected-user-ssh-keys-post).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter      | Description                                                                                                                  |
  | -------------- | ---------------------------------------------------------------------------------------------------------------------------- |
  | Private Key    | The SSH private key. This value will be empty when retrieving the SSH key pair.                                              |
  | Public Key     | The SSH public key.                                                                                                          |
  | Repo Slug      | The repository.                                                                                                              |
  | Workspace Slug | This can either be the workspace ID (slug) or the workspace UUID surrounded by curly-braces, for example `{workspace UUID}`. |
</div>

## Example Output

```json theme={"dark"}
{
	"private_key": "The SSH private key. This value will be empty when retrieving the SSH key pair.",
	"public_key": "The SSH public key.",
	"type": "string"
}
```

## Workflow Library Example

[Create or Update Repo Sshkey with Bitbucket and Send Results Via Email](https://library.blinkops.com/workflows/create-or-update-repo-sshkey-with-bitbucket-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/create-or-update-repo-sshkey-with-bitbucket-and-send-results-via-email/canvas" />
</div>
