toggle menu
gitlab
jvm
switch theme
search in API
gitlab
/
com.mato.gitlab.api
/
BranchesApi
/
updateProtectedBranch
update
Protected
Branch
@
PATCH
(
value
=
"projects/{id}/protected_branches/{name}"
)
abstract
suspend
fun
updateProtectedBranch
(
@
Path
(
value
=
"id"
)
id
:
String
,
@
Path
(
value
=
"name"
)
name
:
String
,
@
Query
(
value
=
"allow_force_push"
)
allowForcePush
:
Boolean
?
=
null
,
@
Query
(
value
=
"code_owner_approval_required"
)
codeOwnerApprovalRequired
:
Boolean
?
=
null
,
@
Body
option
:
ProtectBranchOption
=
ProtectBranchOption()
)
:
Result
<
ProtectedBranch
>