Update a repo-level variable
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Name of the owner
Name of the repository
Name of the variable
Request Body
Section titled “ Request Body ”object
New name for the variable. If the field is empty, the variable name won’t be updated. Forgejo will convert it to uppercase.
Value of the variable to update. Special characters will be retained. Line endings will be normalized to LF to match the behaviour of browsers. Encode the data with Base64 if line endings should be retained.
Example generated
{ "name": "example", "value": "example"}object
New name for the variable. If the field is empty, the variable name won’t be updated. Forgejo will convert it to uppercase.
Value of the variable to update. Special characters will be retained. Line endings will be normalized to LF to match the behaviour of browsers. Encode the data with Base64 if line endings should be retained.
Responses
Section titled “ Responses ”Response when updating a repo-level variable
Response when updating a repo-level variable
APIError is error format response
APIError is an api error with a message
object
Example generated
{ "message": "example", "url": "example"}APINotFound is a not found error response
object
Example generated
{ "errors": [ "example" ], "message": "example", "url": "example"}