PUT api/Forums/PutForumTopic/{id}?Lang={Lang}

Sửa chủ đề diễn. Chỉ tác giả hoặc người được cấp quyền mới có thể sửa.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

ID của chủ đề 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.

ForumTopic
NameDescriptionTypeAdditional 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.

forumPosts

Collection of ForumPost

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:10.3977821+07:00",
  "UpdatedUserID": 1,
  "UpdatedTime": "2026-01-09T22:12:10.3977821+07:00",
  "forumPosts": [
    {
      "$id": "2",
      "ID": 1,
      "ForumTopicID": 2,
      "Title": "sample string 3",
      "Content": "sample string 4",
      "State": 5,
      "TaskforceID": 6,
      "IABoardID": 7,
      "CommentCount": 8,
      "HeartCount": 9,
      "LikeCount": 10,
      "ShareCount": 11,
      "DisplayRange": 12,
      "TFLimitList": "sample string 13",
      "IABLimitList": "sample string 14",
      "CreatedUserID": 1,
      "CreatedTime": "2026-01-09T22:12:10.3977821+07:00",
      "UpdatedUserID": 1,
      "UpdatedTime": "2026-01-09T22:12:10.3977821+07:00",
      "ForumTopic": {
        "$ref": "1"
      },
      "forumComments": [
        {
          "$id": "3",
          "ID": 1,
          "ForumPostID": 2,
          "Content": "sample string 3",
          "State": 4,
          "TaskforceID": 5,
          "IABoardID": 6,
          "HeartCount": 7,
          "LikeCount": 8,
          "ShareCount": 9,
          "CreatedUserID": 1,
          "CreatedTime": "2026-01-09T22:12:10.3977821+07:00",
          "UpdatedUserID": 1,
          "UpdatedTime": "2026-01-09T22:12:10.3977821+07:00",
          "ForumPost": {
            "$ref": "2"
          }
        },
        {
          "$ref": "3"
        }
      ],
      "forumPostTFs": [
        {
          "$id": "4",
          "ID": 1,
          "ForumPostID": 2,
          "TaskforceID": 3,
          "ForumTopic": {
            "$ref": "2"
          },
          "Taskforce": {
            "$id": "5",
            "ID": 1,
            "Name": "sample string 2",
            "enName": "sample string 3",
            "Address": "sample string 4",
            "DeleName": "sample string 5",
            "DeleEmail": "sample string 6",
            "DelePhoneNumber": "sample string 7",
            "ConName": "sample string 8",
            "ConEmail": "sample string 9",
            "ConPhoneNumber": "sample string 10",
            "Avatar": "sample string 11",
            "Note": "sample string 12",
            "State": 13,
            "RootFolderID": 14,
            "IntroPageID": 15,
            "CreatedUserID": 1,
            "CreatedTime": "2026-01-09T22:12:10.3977821+07:00",
            "UpdatedUserID": 1,
            "UpdatedTime": "2026-01-09T22:12:10.3977821+07:00",
            "iABoards": [
              {
                "$id": "6",
                "ID": 1,
                "Name": "sample string 2",
                "Description": "sample string 3",
                "Objective": "sample string 4",
                "Vision": "sample string 5",
                "Avatar": "sample string 6",
                "Note": "sample string 7",
                "State": 8,
                "RootFolderID": 9,
                "IntroPageID": 10,
                "CreatedUserID": 1,
                "CreatedTime": "2026-01-09T22:12:10.3977821+07:00",
                "UpdatedUserID": 1,
                "UpdatedTime": "2026-01-09T22:12:10.3977821+07:00",
                "TaskforceID": 11,
                "Taskforce": {
                  "$ref": "5"
                },
                "iABoardMembers": [
                  {
                    "$id": "7",
                    "ID": 1,
                    "IABoardID": 2,
                    "EmployeeID": 3,
                    "Role": "sample string 4",
                    "Type": 5,
                    "State": 6,
                    "CreatedUserID": 1,
                    "CreatedTime": "2026-01-09T22:12:10.3977821+07:00",
                    "UpdatedUserID": 1,
                    "UpdatedTime": "2026-01-09T22:12:10.3977821+07:00",
                    "IABoard": {
                      "$ref": "6"
                    },
                    "Employee": {
                      "$id": "8",
                      "ID": 1,
                      "EmployeeID": "sample string 2",
                      "FullName": "sample string 3",
                      "Birthday": "2026-01-09T22:12:10.3977821+07:00",
                      "Gender": 4,
                      "PID": "sample string 5",
                      "Email": "sample string 6",
                      "PhoneNumber": "sample string 7",
                      "Address": "sample string 8",
                      "Role": "sample string 9",
                      "Department": "sample string 10",
                      "Avatar": "sample string 11",
                      "Note": "sample string 12",
                      "State": 13,
                      "Ethnic": "sample string 14",
                      "Type": 15,
                      "AcademicTitle": "sample string 16",
                      "AcademicRank": "sample string 17",
                      "CareerTitle": "sample string 18",
                      "Position": "sample string 19",
                      "TaskforceID": 20,
                      "IABoardID": 21,
                      "CreatedUserID": 1,
                      "CreatedTime": "2026-01-09T22:12:10.3977821+07:00",
                      "UpdatedUserID": 1,
                      "UpdatedTime": "2026-01-09T22:12:10.3977821+07:00",
                      "RightGroupMembers": [
                        {
                          "$id": "9",
                          "ID": 1,
                          "RightGroupID": 2,
                          "EmployeeID": 3,
                          "Extra": 4,
                          "State": 5,
                          "CreatedUserID": 1,
                          "CreatedTime": "2026-01-09T22:12:10.3977821+07:00",
                          "UpdatedUserID": 1,
                          "UpdatedTime": "2026-01-09T22:12:10.3977821+07:00",
                          "RightGroup": {
                            "$id": "10",
                            "ID": 1,
                            "Name": "sample string 2",
                            "Rights": "sample string 3",
                            "Note": "sample string 4",
                            "State": 5,
                            "CreatedUserID": 1,
                            "CreatedTime": "2026-01-09T22:12:10.3977821+07:00",
                            "UpdatedUserID": 1,
                            "UpdatedTime": "2026-01-09T22:12:10.3977821+07:00",
                            "RightGroupMembers": [
                              {
                                "$ref": "9"
                              },
                              {
                                "$ref": "9"
                              }
                            ]
                          },
                          "Employee": {
                            "$ref": "8"
                          }
                        },
                        {
                          "$ref": "9"
                        }
                      ]
                    }
                  },
                  {
                    "$ref": "7"
                  }
                ],
                "ForumPostIABs": [
                  {
                    "$id": "11",
                    "ID": 1,
                    "ForumPostID": 2,
                    "IABoardID": 3,
                    "ForumTopic": {
                      "$ref": "2"
                    },
                    "IABoard": {
                      "$ref": "6"
                    }
                  },
                  {
                    "$ref": "11"
                  }
                ]
              },
              {
                "$ref": "6"
              }
            ],
            "taskforceMembers": [
              {
                "$id": "12",
                "ID": 1,
                "TaskforceID": 2,
                "EmployeeID": 3,
                "Role": "sample string 4",
                "Type": 5,
                "State": 6,
                "CreatedUserID": 1,
                "CreatedTime": "2026-01-09T22:12:10.3977821+07:00",
                "UpdatedUserID": 1,
                "UpdatedTime": "2026-01-09T22:12:10.3977821+07:00",
                "Taskforce": {
                  "$ref": "5"
                },
                "Employee": {
                  "$ref": "8"
                }
              },
              {
                "$ref": "12"
              }
            ]
          }
        },
        {
          "$ref": "4"
        }
      ]
    },
    {
      "$ref": "2"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ForumTopic'.

Response Information

Resource Description

Trả về True nếu cập nhật thành công.

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.