Template 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/templates/{namespace}/{name}

Example Request Body:

1
2
3
{
  "data": "updated_data"
}

Example Response Body:

1
2
3
4
5
6
{ 
    "id": 1,
    "name": "plugin.starlark",
    "namespace": "octocat",
    "data": "updated_data"
}