# API를 가져오려 하면 문서가 부족하여 ID가 2개 표시됩니다

**URL:** <https://meta.discourse.org/t/there-are-2-ids-when-i-try-to-get-api-in-case-of-lack-documentation/214844>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [1월 14, 2022, 11:07오전 UTC](https://meta.discourse.org/t/there-are-2-ids-when-i-try-to-get-api-in-case-of-lack-documentation/214844 "2022-01-14T11:07:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [1월 14, 2022, 2:37오후 UTC](https://meta.discourse.org/t/there-are-2-ids-when-i-try-to-get-api-in-case-of-lack-documentation/214844/2 "2022-01-14T14:37:27Z")

</div>

> [@cmdntd](#):
>
> - 개인 메시지 ID

`topic.id`입니다.

> [@cmdntd](#):
>
> 1. 더 큰 숫자의 ID (예: 개인 메시지 수정용 ID)

`post.id`입니다.

> [@cmdntd](#):
>
> PUT 요청을 보내는 것을 테스트해 보면, 개인 메시지 ID로는 제목만 변경할 수 있고 "raw"를 통해 메시지 세부 내용을 변경할 수 없습니다.

제목은 토픽의 일부이고, `raw`는 게시물의 일부입니다. 게시물을 자세히 살펴보면, 개인 메시지 ID라고 부르는 숫자가 포함된 `topic_id` 필드를 볼 수 있습니다.

여기를 참고해 보세요: [There are 2 IDs when I try to get API, in case of lack documentation](https://meta.discourse.org/t/there-are-2-ids-when-i-try-to-get-api-in-case-of-lack-documentation/214844.json) (이 토픽이지만 PM과 동일한 구조입니다) 그리고 다음을 확인해 보세요:

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/7/2797446e89d14d74c994d04cdc831b36b6c0f501.png)

즉, `raw`에 변경 사항을 POST할 때는 `post_id`를 사용해야 합니다. 제목을 변경하는 곳은 `topic_id`입니다.

---

_[View the full topic](https://meta.discourse.org/t/there-are-2-ids-when-i-try-to-get-api-in-case-of-lack-documentation/214844)._
