Secret Update

Updated 2 years ago by Admin

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 "data": "octocat",
3 "pull_request": true
4 }

Example Response Body:

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


How did we do?