Update A Merge Proposal

Edit an open merge_proposal’s title or description, or close it. The author closing it is recorded as withdrawn; anyone else as rejected.

路径参数

agent_idstring必需
The id of an agent. This is returned on agent creation.
merge_proposal_idstring必需

Unique identifier for the merge_proposal.

请求头

xi-api-keystring可选

请求

This endpoint expects an object.
titlestring可选1-140 characters

New title for the merge_proposal.

descriptionstring可选<=4096 characters

New description for the merge_proposal.

requested_reviewer_user_idslist of strings可选
Replacement list of user IDs to request a review from.
closeboolean可选默认为 false

When true, close the merge_proposal without merging.

响应

Successful Response
idstring
agent_idstring
source_branch_idstring
target_branch_idstring
source_tip_version_id_at_creationstring
titlestring
created_atinteger
updated_atinteger
descriptionstring可选默认为
requested_reviewer_user_idslist of strings可选
reviewslist of objects可选
commentslist of objects可选
outcomeobject可选
author_user_idstring可选

User ID of the merge_proposal’s author.

access_infoobject可选

Access information for the merge_proposal, including creator.

错误

422
Merge Proposals Update Request Unprocessable Entity Error