Edit Post or Comment
- Endpoint Path:
/api/fresns/v1/editor/{type}/edit/{fsid}
- Method:
POST
- Request:
Rest
Headers Optional Parameter
Key | Public Mode (Required) | Private Mode (Required) |
---|---|---|
X-Fresns-Aid | required | required |
X-Fresns-Aid-Token | required | required |
X-Fresns-Uid | required | required |
X-Fresns-Uid-Token | required | required |
Path Variables
Key | Type | Required | Description |
---|---|---|---|
type | String | required | post or comment |
fsid | String | required | pid or cid |
Return
json
{
"code": 0,
"message": "ok",
"data": {
"detail": {
// Common Data Structure -> Draft Info
},
"controls": {
"isEditDraft": "Boolean / Whether it is an editable draft",
"editableStatus": "Boolean / Whether it can be edited",
"editableTime": "String / Remaining editable time, for example 03:00 means 3 minutes left",
"deadlineTime": "String / The specific date and time of the editable deadline, for example 2022-07-01 15:05:00"
}
}
}