PUT/boards/{boardId}/posts/{postId}
Updates a post.
HTML scripts are not allowed for security purposes.
OAuth 2.0 authentication.
For more information, see Authentication and Authorization.
board
| Parameter | Type | Description |
|---|---|---|
| boardId | integer | Board ID required example : 100 format : int64 |
| postId | integer | Post ID required example : 1 format : int64 |
| Header | type | Description |
|---|---|---|
| Authorization | string | Bearer {token} required |
| Content-Type | string | application/json required example : application/json |
| Property | Type | Description |
|---|---|---|
| title | string | Subject required minLength : 1 maxLength : 200 |
| body | string | Content required minLength : 1 maxLength : 716800 |
| enableComment | boolean | Indicates whether to enable comments. default : true |
| mustReadEndDate | string | Must-read end date (up to 30 days) format : date |
| sendNotifications | boolean | Indicates whether to notify when a post is created default : true |
example
1{2 "title": "Example title",3 "body": "<h1>Example</h1> Insert body here.",4 "enableComment": true,5 "mustReadEndDate": "2023-03-20",6 "sendNotifications": true7}OK
| Property | Type | Description |
|---|---|---|
| boardId | integer | Board no. format : int64 |
| postId | integer | Post no. format : int64 |
| title | string | Subject required |
| readCount | integer | Number of reads format : int64 |
| commentCount | integer | Number of comments format : int64 |
| fileCount | integer | Number of files format : int64 |
| createdTime | string | Creation time
required format : date-time readOnly : true |
| modifiedTime | string | Update time
format : date-time readOnly : true |
| isMustRead | boolean | Indicates whether the post must be read. |
| mustReadPeriod | object (mustReadPeriod) | Must-read period |
| body | string | Content (format: HTML) required |
| enableComment | boolean | Indicates whether to enable comments. |
| userId | string | readOnly : true nullable : true |
| userName | string | Author name readOnly : true |
| Property | Type | Description |
|---|---|---|
| startDate | string | Must-read start date format : date readOnly : true |
| endDate | string | Must-read end date format : date |
example
1{2 "boardId": 100,3 "postId": 1,4 "title": "Example title",5 "readCount": 0,6 "commentCount": 0,7 "fileCount": 0,8 "createdTime": "2022-10-28T17:26:35+09:00",9 "modifiedTime": "2022-10-28T17:26:35+09:00",10 "isMustRead": true,11 "mustReadPeriod": {12 "startDate": "2023-03-13",13 "endDate": "2023-03-20"14 },15 "body": "<h1>Example</h1> Insert body here.",16 "enableComment": true,17 "userId": "userf7da-f82c-4284-13e7-030f3b4c756x",18 "userName": "Susan Nielsen"19}Temporary redirect.
A resource that exists in another instance.
Returns the requested URL in the Location header.
Forbidden