Review A Merge Proposal

Approve a merge_proposal or request changes on it. A user’s latest review replaces their previous one. Non-admins need an approval from another user before the merge is allowed.

Path parameters

agent_idstringRequired
The id of an agent. This is returned on agent creation.
merge_proposal_idstringRequired

Unique identifier for the merge_proposal.

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
stateenumRequired
The review verdict.
Allowed values:
commentstringOptional<=4096 charactersDefaults to
Optional comment to leave with the review.

Response

Successful Response
idstring
agent_idstring
source_branch_idstring
target_branch_idstring
source_tip_version_id_at_creationstring
titlestring
created_atinteger
updated_atinteger
descriptionstringOptionalDefaults to
requested_reviewer_user_idslist of stringsOptional
reviewslist of objectsOptional
commentslist of objectsOptional
outcomeobjectOptional
author_user_idstringOptional

User ID of the merge_proposal’s author.

access_infoobjectOptional

Access information for the merge_proposal, including creator.

Errors

422
Merge Proposals Submit Review Request Unprocessable Entity Error