# 시각 검토 토론 API (사용 중단됨)

DETAILS:
**Tier:** Premium, Ultimate
**Offering:** GitLab.com, Self-managed, GitLab Dedicated

> - [GitLab 12.5에 도입되었습니다](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/18710).
> - [GitLab 13.9에서 GitLab Premium으로 이동되었습니다](https://about.gitlab.com/blog/2021/01/26/new-gitlab-product-subscription-model/).

경고:
이 기능은 [GitLab 15.8에서 사용 중단](https://gitlab.com/gitlab-org/gitlab/-/issues/387751)되었으며 17.0에서 제거 예정입니다. 이 변경 사항은 파괴적인 변경입니다.

시각 검토 토론은 [시각적 검토](../ci/review_apps/index.md#visual-reviews-deprecated)에서 피드백으로 보낸 병합 요청의 노트입니다.

## 새로운 병합 요청 스레드 생성

단일 프로젝트 병합 요청에 새로운 스레드를 생성합니다. 이것은 노트를 생성하는 것과 유사하지만 다른 코멘트(답글)를 나중에 추가할 수 있습니다.

```plaintext
POST /projects/:id/merge_requests/:merge_request_iid/visual_review_discussions

매개변수:

속성 유형 필수 여부 설명
id integer/string Yes 프로젝트의 ID 또는 URL-encoded path
merge_request_iid integer Yes 병합 요청의 IID
body string Yes 스레드의 내용
position 해시 No Diff 노트를 생성할 때의 위치
position[base_sha] string Yes 소스 브랜치의 베이스 커밋 SHA
position[start_sha] string Yes 대상 브랜치에서 커밋을 참조하는 SHA
position[head_sha] string Yes 이 병합 요청의 HEAD를 참조하는 SHA
position[position_type] string Yes 위치 참조의 유형. text 또는 image 중 하나
position[new_path] string No 변경 후 파일 경로
position[new_line] integer No 변경 후 라인 번호 (text diff 노트에만 저장됨)
position[old_path] string No 변경 전 파일 경로
position[old_line] integer No 변경 전 라인 번호 (text diff 노트에만 저장됨)
position[width] integer No 이미지의 너비 (image diff 노트에만 저장됨)
position[height] integer No 이미지의 높이 (image diff 노트에만 저장됨)
position[x] integer No X 좌표 (image diff 노트에만 저장됨)
position[y] integer No Y 좌표 (image diff 노트에만 저장됨)
curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/merge_requests/11/visual_review_discussions?body=comment"

```