跳到主要内容

Modify Project Code Approval Settings

PUT 

/api/v5/repos/:owner/:repo/reviewer

Request​

Path Parameters

    owner stringrequired

    Repository space address (organization or individual's address path)

    repo stringrequired

    Repository path (path)

Query Parameters

    access_token stringrequired

    User authorization code

Body

    assigneesstring

    approver usernames, multiple usernames allowed, separated by half-width commas, e.g.: (username1,username2)

    testersstring

    Test user username, multiple can be provided, separated by half-width commas, e.g.: (username1,username2)

    assignees_numberinteger

    Minimum number of approvers

    testers_numberinteger

    Minimum number of test participants

Responses​

Successful Response

Response Headers
    Schema
      idinteger
      created_atstring
      updated_atstring