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:

{
  "value": "octocat",
  "event": [
    "push",
    "pull_request"
  ]
}

Example Response Body:

{
  "id": 1,
  "name": "docker_username",
  "image": null,
  "event": [
    "push",
    "pull_request"
  ]
}

Is there a mistake on this page? Please let us know or edit this page.