Secret Create

Create a new repository secret. Please note this api requires write access to the repository.

POST /api/repos/{owner}/{repo}/secrets

Example Request Body:

{
  "name": "docker_username",
  "data": "octocat",
  "pull_request": false
}

Example Response Body:

{
  "id": 1,
  "repo_id": 42,
  "name": "docker_username",
  "pull_request": false
}