API PUT 요청으로 게시글 업데이트

API 문서에 약간의 불일치가 있습니다:

문서에는 페이로드와 함께 PUT /posts/{id}.json이라고 되어 있습니다:

Content type: application/json

{
  "post[raw]": "string",
  "post[raw_old]": "string",
  "post[edit_reason]": "string",
  "post[cooked]": "string"
}

하지만 이는 PUT /posts/{id}와 Content-Type: application/x-www-form-urlencoded로만 작동합니다.

PUT /posts/{id}.json의 올바른 페이로드는 다음과 같아야 합니다:

Content type: application/json

{
  "post": {
      "raw": "string",
      "raw_old": "string",
      "edit_reason": "string",
      "cooked": "string"
    }
}

raw 파라미터만으로도 전체 게시글을 대체하는 데 충분합니다.