PUT api/PagePosts/PutPageTopic/{id}?Lang={Lang}
Sửa chủ đề bài viết. Chỉ tác giả hoặc người được cấp quyền mới có thể sửa.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
ID của bài viết cần sửa. |
integer |
Required |
| Lang |
Lang ngôn ngữ hiện hành (en/vi). Mặc định là vi. |
string |
Default value is vi |
Body Parameters
Chủ đề bài viết cần sửa.
PageTopic| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| ParentID | integer |
None. |
|
| Content | string |
Required |
|
| Level | integer |
None. |
|
| State | integer |
None. |
|
| Note | string |
None. |
|
| TaskforceID | integer |
None. |
|
| IABoardID | integer |
None. |
|
| SubTopicCount | integer |
None. |
|
| PostCount | integer |
None. |
|
| CommentCount | integer |
None. |
|
| CreatedUserID | integer |
None. |
|
| CreatedTime | date |
None. |
|
| UpdatedUserID | integer |
None. |
|
| UpdatedTime | date |
None. |
|
| PagePosts | Collection of PagePost |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"ParentID": 2,
"Content": "sample string 3",
"Level": 4,
"State": 5,
"Note": "sample string 6",
"TaskforceID": 7,
"IABoardID": 8,
"SubTopicCount": 9,
"PostCount": 10,
"CommentCount": 11,
"CreatedUserID": 1,
"CreatedTime": "2026-01-09T22:12:51.5540694+07:00",
"UpdatedUserID": 1,
"UpdatedTime": "2026-01-09T22:12:51.5540694+07:00",
"PagePosts": [
{
"$id": "2",
"ID": 1,
"PageTopicID": 2,
"Title": "sample string 3",
"Summary": "sample string 4",
"Content": "sample string 5",
"PrePicture": "sample string 6",
"State": 7,
"Level": 8,
"TaskforceID": 9,
"IABoardID": 10,
"CommentCount": 11,
"HeartCount": 12,
"LikeCount": 13,
"ShareCount": 14,
"en": 15,
"enTitle": "sample string 16",
"enSummary": "sample string 17",
"enContent": "sample string 18",
"CreatedUserID": 1,
"CreatedTime": "2026-01-09T22:12:51.5540694+07:00",
"UpdatedUserID": 1,
"UpdatedTime": "2026-01-09T22:12:51.5540694+07:00",
"PageTopic": {
"$ref": "1"
}
},
{
"$ref": "2"
}
]
}
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Trả về True nếu cập nhật thành công.
IHttpActionResultNone.
Response Formats
application/json, text/json
Sample:
Sample not available.