Secret Update

Updates the specified repository secret. Please note this api requires write access to the repository, and the request parameter {secret} is not the secret’s id but secret name.

PATCH /api/repos/{owner}/{repo}/secrets/{secret}

Example Request Body:

1
2
3
4
{
  "data": "octocat",
  "pull_request": true
}

Example Response Body:

1
2
3
4
5
6
7
{
  "id": 1,
  "repo_id": 42,
  "name": "docker_username",
  "data": "octocat",
  "pull_request": true
}